user can't login
Hi there. I want to prevene some users for logging in to the machine. I dont wat to disable their accounts. For example lets think the apache user. What i must add to the /etc/passwd so no shell corresponds to the user?
Thx |
It's pretty simple to deduce, look at these two entries for example:
user:x:500:100::/home/user:/bin/bash shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown Obviously, the shell is the part at the end. I think standard practice is to replace the last part with "/bin/false". If you want a graphical way to do this, check out linuxconf or your distro's tools (such as Drakconf for Mandrake, or YaST for SuSE, both very simple with which to administrate user accounts). |
All times are GMT -5. The time now is 06:22 AM. |