Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've created a user and assigned a password and group (new group). The problem is this user can only login to FTP (proftpd) if he has shell = /bin/bash

If I set the shell to /bin/false then Proftpd doesn't let him in and serves a 530 Login incorrect response.

I want the user to be able to login to FTP but no other access, so no access to login via SSH. The /etc/proftpd.conf is all defaults and it's version 1.3.3e, and it's CentOS 6.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Any shell you want to use with proftpd should be listed in the /etc/shells file (http://www.proftpd.org/docs/directives/linked/config_ref_RequireValidShell.html)

You should add /bin/false to /etc/shells or set RequireValidShell off in the proftpd config

good luck!

share|improve this answer
    
Thanks, that solved it –  ServerBloke Jan 4 '12 at 15:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.