Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-10-2013, 08:00 AM   #1
Senior Member
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
ftp users /bin/bash rather than /sbin/nologin ?

I was looking at an FTP server's /etc/passwd, and it appears that most the ftp only users have their shell set to /bin/bash rather than /sbin/nologin.

Shouldn't any account that is only used for FTP'ing have a shell of /sbin/nologin?

If I change them all to /sbin/nologin, can you think of any problems this might cause when they ftp?
Old 04-10-2013, 08:13 AM   #2
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
I am using CentOS and my ftp account is:-
[root@alice ~]# cat /etc/passwd |grep ftp
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin

and i am able to access with ftp user.

actuly you cant directly login with the /sbin/nologin
but system can use for the data transfer.....
Old 04-10-2013, 08:17 AM   #3
Senior Member
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
That's how I normally setup the users, but I'm wondering if there might actually be a reason I'm unaware of that an FTP user should have a regular shell.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the root shell /sbin/nologin to /bin/bash by login as user sunrised24 Linux - Server 9 02-05-2012 06:12 AM
How to change from /sbin/sh to /bin/bash for 'root'? thomas2004ch Linux - Software 2 02-19-2011 05:29 AM
How to add paths to sbin, bin/bash, bin sh for users gopi.d Fedora 3 12-07-2007 12:47 AM
/bin/false vs /sbin/nologin - difference? ziggie216 Linux - General 1 12-22-2005 02:59 AM
/sbin/nologin tyccea Red Hat 2 10-22-2003 07:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:34 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