LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   /bin/false vs /sbin/nologin - difference? (https://www.linuxquestions.org/questions/linux-general-1/bin-false-vs-sbin-nologin-difference-395268/)

ziggie216 12-21-2005 09:58 AM

/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?

timmeke 12-22-2005 02:59 AM

/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.


All times are GMT -5. The time now is 01:01 PM.