Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-21-2005, 10:58 AM   #1
Registered: Oct 2003
Posts: 176

Rep: Reputation: 30
/bin/false vs /sbin/nologin - difference?

The only thing I have read was that /sbin/nologin allow ftp login, but not through shell. Is there anything else?
Old 12-22-2005, 03:59 AM   #2
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
/bin/false simply exits with an error code.
It was used in the past for denied logins. However, nologin is better suited for that nowadays.

/sbin/nologin prints a message that login is denied/not possible and then exits with an error message.
Use this if you want to deny logins.

As for ftp, you can make some ftp users that don't correspond to "real" users (ie users that have a shell),
for instance, guest users, anonymous user, etc.
Check out "ftpaccess" for that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with /bin/false reactnet Slackware 5 08-29-2005 11:19 PM
openbsd difference between bin and sbin noir911 *BSD 1 07-16-2005 12:28 AM
SSH Problem /bin/false ultrix Linux - Security 2 06-17-2005 08:31 AM
sendmail adduser sbin/nologin using php mhatre kedar Linux - Networking 0 04-18-2005 02:12 AM
/sbin/nologin tyccea Red Hat 2 10-22-2003 08:56 AM

All times are GMT -5. The time now is 09:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration