Disable direct root access
hi,just try to disable direct root access as below (found at ev1serv forum)but it does not work. Cann still access as root. Is there anythong else to disable root access on a cpanel server?
thanks.
--------------------
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
8) Restart SSH
/etc/rc.d/init.d/sshd restart