user deny using pam
Hi All,
Can anybody help me to know... How to make nologin user using pam? Thanks in advance! Regards, Karthi |
Why not just:
usermod -L -s /sbin/nologin |
Hi macemoneta,
Thanks, Can u tell me how to make it nologin user using PAM? |
You want to prevent a user from login in, correct? As root, just issue the command:
usermod -L -s /sbin/nologin someuser where 'someuser' is the userid. The user will not be permitted to login. |
Hi macemoneta,
Thanks, Can we deny any user login by editing the file /etc/pam.d/login? Is that possible? pls give me any idea. Regards, Karthi |
It's possible to use pam to limit logins, but you do that by editing /etc/security/access.conf. The file is normally just commented documentation - read it and you will learn how to use it.
However, using that method can completely lock you out of a system (including root access). I don't recommend it. If you are going to try anyway, make sure you have a bootable recovery disk available to correct errors. |
All times are GMT -5. The time now is 05:56 AM. |