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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i add /bin/false to etc/shells

Status
Not open for further replies.

benp07

Technical User
Aug 31, 2001
87
US
i am trying to add /bin/false to etc/shells and i have no idea how to start i am trying to use /bin/false for sendmail users but for some reason the users can still log in to the system and i thing it is because the shell /bin/false in the in the shells file

thanks alot
Ben
 
I'd use /bin/true, but did you do

chsh -s /bin/false fred
chsh -s /bin/false ted

etc. ???

Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
echo "/bin/false" >> /etc/shells

Not having /bin/false in the shells file can produce an error when you use chsh, but if you set it as their shell manually, then it doesn't matter...

Maybe you should post one of the relevant lines from /etc/passwd for us to look at. (Edited to protect the innocent, of course)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top