Cheap Web Hosting   Cheap Web Hosting and Domain Registration Directory
Domain Registration

SALE: .com $7.47, .info $1.99, .net $6.49, .org $7.99

NEW: .bz $12.99, .nl $14.99, .es $14.99 .it $14.99

  • $7.47 .com domain
  • $6.49 .net domain
  • $1.99 .info domain
  • $7.99 .org domain
  • $3.40 web hosting
  • $9.99 .co.uk
  • Login
    Username:

    Password:


    Lost Password?

    Register now!
    Search
    Webmasters
    Hosting Article :: Dedicated Web Hosting

    How To Disable Direct Root Login


    root su login ssh2
    Why would you want to disable root login?
    Well.. you're not.. You are disabling "direct" root login.

    This will force a hacker to have to guess 2 seperate passwords to gain root access.. (you do have 2 seperate passwords for admin and root right?)

    After you do this, you will have to login as 'admin' then you will 'su -' to get to root.. We also will be forcing the use of SSH protocol 2, which is a newer, more secure SSH protocol

    Just a couple more ways to help your server stay safe from the bad guys.

    If you're using cPanel make sure you add your admin user to the 'wheel' group so that you will be able to 'su -' to root, otherwise you may lock yourself out of root

    1) SSH into your server as 'admin' and gain root access by

    su -

    2) Copy and paste this line to edit the file

    pico -w /etc/ssh/sshd_config

    3) Find the line

    #Protocol 2, 1

    4) Uncomment it and change it to look like

    Protocol 2

    5) Next, find the line

    #PermitRootLogin yes

    6)Uncomment it and make it look like

    PermitRootLogin no

    7) Save the file

    ctrl 'x' then 'y' then enter

    Restart SSH

    /etc/rc.d/init.d/sshd restart

    Now, no one will be able to login to root with out first loggin in as admin and 'su -' to root, and you will be forcing the use of a more secure protocol
    How to Express Yourself (by Writing) on the Internet: Part Two >>
    Trackback
    • URL: http://www.hostsdepot.com/modules/article/view.article.php/c8/18
    • Trackback: http://www.hostsdepot.com/modules/article/trackback.php/18
    API: Toolkit PM Email PDF Bookmark Print | RSS | RDF | ATOM
    Copyright© Hostsdepot & Web Hosting Directory
     
    The comments are owned by the poster. We aren't responsible for their content.

     Re: How To Disable Direct Root Login

    Reply
    Posted: 2010/1/24 11:02  Updated: 2010/1/24 11:02

    jazmine5

    Just popping in
    Joined: 2010/1/24
    From:
    Posts: 1
    Main Menu
    Hosting


    Powered by Cheap Web Hosting Directory     Cheap Web Hosting Domain Names Expired Domains