Translate

Wednesday, 2 January 2013

How to block direct root access in Linux

How to block direct root access in Linux


Its very dangerous to give root access to any one and open your system to log in by remotely through "root" user, because its very difficult to capture its logs. So here is tips to block your direct root access through remote server by this u can get information who has logged in and using root access by verify /var/log/secure log by, It will give you information who logged in system and than use root access for there work.

So for blocking root access follow these steps

1. #vi /etc/ssh/sshd_config
3. Locate the parameter -- PermitRootLogin yes
4. Change this to PermitRootLogin no
5. Save and exit

#wq!
6. Restart your sshd by type /etc/init.d/sshd restart


 

2 comments:

  1. Please share your comments..

    ReplyDelete
  2. Hi,

    Thanks for the post. it was really helpful.

    Gr8 work, keep this spirit up. :)

    ReplyDelete