Help answer threads with 0 replies.
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, 09: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, 02: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 10:19 PM
openbsd difference between bin and sbin noir911 *BSD 1 07-15-2005 11:28 PM
SSH Problem /bin/false ultrix Linux - Security 2 06-17-2005 07:31 AM
sendmail adduser sbin/nologin using php mhatre kedar Linux - Networking 0 04-18-2005 01:12 AM
/sbin/nologin tyccea Red Hat 2 10-22-2003 07:56 AM > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration