I have centos machinesand below I set this in my access.conf - : root : ALL yet I can login via root and do all the stuff. So what is the job of access.conf then? Is there anything wrong done here?
Here you go and get to know how to activate access.conf
I did add following in my access.conf file
I added the following in the file "/etc/pam.d/sshd"
Specially the 3rd line.
After editing this I tried accessing the server as user
This is what I saw in the log file "/var/log/secure"
Here "user1" has been denied from any IP. Similarly you can do it for any user.
Here is the log for
Hope this helps.
|show 2 more comments|