LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-10-2013, 09:00 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Rep: Reputation: 48
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, 09:13 AM   #2
jitendra.sharma
Member
 
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, 09:17 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
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.
 
  


Reply


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 07:12 AM
How to change from /sbin/sh to /bin/bash for 'root'? thomas2004ch Linux - Software 2 02-19-2011 06:29 AM
How to add paths to sbin, bin/bash, bin sh for users gopi.d Fedora 3 12-07-2007 01:47 AM
/bin/false vs /sbin/nologin - difference? ziggie216 Linux - General 1 12-22-2005 03:59 AM
/sbin/nologin tyccea Red Hat 2 10-22-2003 08:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 AM.

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