Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com 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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

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 http://www.proftpd.org/docs/directives/linked/config_ref_DefaultRoot.html

share|improve this answer

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