I have a problem I'm running Debian 6 and I need to have two users
one that has the ability to login via ssh and the other that has only the ability to use FTP or to server as FTP user.
They need to share the same folder
. The SSH users should have all permissions rwx
, the FTP one should have only rw
When I used CentOS 6.3 I was just running these commands and I got what I wanted
but on Debian it does not work
as it should. When FTP user tries to login to FTP server returns "530 Login incorrect" and refuses the connection.
Here are the commands that I use to create these users:
So this works on CentOS 6.3 with vsftpd but it does not work with Debian 6.
passwd SSHUser #I set the password manually by typing
useradd FTPUser -d /home/SSHUser -s /sbin/nologin #tried to change shell to /bin/false
passwd FTPUser #I set the pass for FTP user
usermod -a -G SSHUser FTPUser #I set the FTP user to same group as SSHUser
chmod -R 775 /home/SSHUser #set the permissions to folder eaven tried with 777
Does anyone have a clue what is causing the problem?
Thanks in advance!