LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help setting up "ftp only" user account with vsftpd (http://www.linuxquestions.org/questions/linux-software-2/need-help-setting-up-ftp-only-user-account-with-vsftpd-885652/)

GeekyAdam 06-10-2011 03:40 PM

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.

bathory 06-10-2011 04:15 PM

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

GeekyAdam 06-11-2011 01:54 PM

Quote:

Originally Posted by bathory (Post 4382262)
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)


All times are GMT -5. The time now is 09:11 AM.