LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-10-2011, 03:40 PM   #1
GeekyAdam
LQ Newbie
 
Registered: Aug 2010
Location: Erie, PA
Distribution: Ubuntu 10.04
Posts: 13

Rep: Reputation: 0
Question Need help setting up "ftp only" user account with vsftpd


When setting up ftp users, is it possible with vsftp to allow a non-anonymous user ftp access, without them having a shell set?
i.e. their shell is /bin/false (for security precautions), but vsftp's "local_enable" setting only allows ftp login from users in /etc/passwd that have a usable shell (/bin/sh, /bin/bash, etc).
i'd like to set an account's shell to /bin/false but still be able to access ftp. so the account has ftp access but no ssh/shell access.

Long story short, I want an account that has access to the ftp server and nothing else.

Running Ubuntu Server 10.04 + vsftpd 2.2.2.
 
Old 06-10-2011, 04:15 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,775

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hi,

I don't think there will be any problem with a /bin/false shell, as long as it's included in /etc/shells.

Regards
 
1 members found this post helpful.
Old 06-11-2011, 01:54 PM   #3
GeekyAdam
LQ Newbie
 
Registered: Aug 2010
Location: Erie, PA
Distribution: Ubuntu 10.04
Posts: 13

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by bathory View Post
I don't think there will be any problem with a /bin/false shell, as long as it's included in /etc/shells.
Adding /bin/false to /etc/shells did the trick.
Thanks!
(marking as solved)
 
  


Reply

Tags
ftp, ubuntu, vsftp, vsftpd, vsftpdconf


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New user first login attempt gets "Account locked. Maximum attempts reached" p3t0rt Linux - Newbie 2 07-21-2009 04:40 PM
"To add a new user account, log in to the root account" how do i do this (im new) pierce77x Linux - Newbie 4 12-28-2008 02:44 PM
VSFTPD:How to have vsftpd ask for anon user to "send email for password"? dmurray8888 Linux - Networking 1 08-31-2008 06:04 PM
Problem with SSL and vsftpd, receiving error "530 This FTP Server is Anonymous Only" Phoenix_Zero Linux - Server 12 06-28-2007 05:22 PM
Root can log on, user account can't. "Error in service module" Charlie Spencer Linux - Newbie 3 09-13-2006 01:35 PM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration