Results 1 to 3 of 3
I have a user that I want to give FTP access to WITHOUT SSH access...
When SSH i enabled the user can comfortably user the FTP server (vsftpd) but when ...
- 08-16-2007 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 4
Turning off SSH for a user... FTP troubles
I have a user that I want to give FTP access to WITHOUT SSH access...
When SSH i enabled the user can comfortably user the FTP server (vsftpd) but when I disable SSH for the user account (See below) I get a 530 login failed
.
I've been turning off SSH for the user by modifying /etc/passwd:
From:
user.../bin/sh
To:
user..../bin/false
Any ideas of why the user can't login to teh FTP server when SSH has been disabled?
Thanks for the help!
- 08-16-2007 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
By changing /bin/sh to /bin/false you are denying login of all types. This will not only prevent ftp access but the ability to run any command. You can edit the /etc/ssh/sshd_config file and add the parameter
As necessary for your user names. Don't forget to restart sshd.Code:DenyUsers john paul george ringo
- 08-16-2007 #3Just Joined!
- Join Date
- Jul 2007
- Posts
- 4


Reply With Quote

