LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   user can't login (https://www.linuxquestions.org/questions/linux-software-2/user-cant-login-156991/)

alaios 03-13-2004 12:16 AM

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

tk31337 03-13-2004 05:23 AM

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.