I am for at least 5 hours trying to setup new login with his own home directory for vsftpd on my server running Centos.
Steps that I have done:
chown -R <user> /var/www/mywebsite
gpasswd -a <user> <group>
chgrp -R <group> /var/www/mywebsite
chmod -R g+rw /var/www/mywebsite
also I have enabled the local_enable in vsftpd.conf chroot_local_user as well
and moved the HOME directory to the folder mentioned above
The thing is, that now even when I try to use the ftp from the machine (through ssh) I can login with my default user on the machine with its password, but when I try to login with the newly created it fails. Maybe it has something to do with this: http://prntscr.com/c3feji when I log in as the new user to the machine it doesn't look as usual, where I can see the username and folder in which I am, also lot of commands don't work.
So my question in conclusion is, is there something I missed when creating the new user? Thanks in advance for your help!
EDIT: I have used the virtual users instead which works perfectly for me, still I would like to keep this question opened, as answers could help people with similar problems.