Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to give user permissions on ubuntu server?

Hi, i've a serious problem creating FTP accounts on my Ubuntu server:

I create a new ftp user account with the following command: "sudo adduser username" and it creates automatically a folder where the user is going to put their files, but when the user login through FTP he can go up a directory to the root directory and do whatever he wants, the big question is "How can i limit the access of the user and let him only to see his folder and don't permit to go to another up directory?"

Thanks a lot.

share|improve this question

migrated from Apr 13 '11 at 17:44

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Zypher Apr 13 '11 at 18:54

This question was marked as an exact duplicate of an existing question.

There are options in /etc/vsftpd.conf to help make vsftpd more secure. Users can be limited to their home directories by uncommenting:


share|improve this answer

You've not mentioned what FTP server software you're using (vsftpd, proftpd?) but most FTP servers have the ability to 'jail' users to their own home directory.

Proftpd achieves this using the 'DefaultRoot' options in the configuration file. See

share|improve this answer

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