How to create a limited ftp account?
So, now I have this problem…
I’m able to create a new user and change it’s home folder to where I want:
adduser --no-create-home username chown username:username /var/www/html/ usermod --home /var/www/html/ username
But now how can I limit this user to see/write only in its home directory (/var/www/html/) and not go above this directory via ftp? Right now the user is able to see everything. Anyone has any ideia? I was not able to find an answear for this using openssh-sftp. I’m using ubuntu 14.04, btw.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×