Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/bin/false users can still login

Status
Not open for further replies.

benp07

Technical User
Aug 31, 2001
87
US
i have used this command
# /usr/sbin/useradd -d /home/user1 -s /bin/false -c user1
-g mail user1
to try and make users that can only send and recieve emails but for some reason the users can still logon as system users i am going nuts /bin/false should not let users logon as system users i am using mandrake 8.1 and the latiest ver. of sendmail
thanks alot
Ben
 
Have you double checked /etc/passwd to see if /bin/false was added correctly to the shell?

username:x:500:700:User Name:/home/username:/bin/false

If that allows logins, then /bin/false must be sym-linked to a shell or you might have a trojan horse or rootkit lurking. Bruce Garlock
bruceg@tiac.net
 
Perhaps you need to add /bin/false to your /etc/shells file, try that. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
You can also check the file itself /bin/false exists and has information in it e.g.
cat /bin/false
It should simply say (to the effect of):
exit 1
With regards
Ben
 
>>Perhaps you need to add /bin/false to your /etc/shells

I have all users, except for a few with /bin/false as a shell, and /bin/false is not in my /etc/shells, and everything works fine.

You could even specify /dev/null as the users shell, and that would not allow a login either. Bruce Garlock
bruceg@tiac.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top