Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

How do I set/change the default ftp root folder for a specific user? I want to be able to create a developer account that homes to different sites on a development box depending on what is currently being worked on.

EDIT: The server is running Ubuntu and vsftpd.

share|improve this question
What FTP software are you use? What authentication methods? – Marco Ceppi Aug 11 '10 at 2:12
up vote 3 down vote accepted

If you specify the user_config_dir in vsftpd.conf, you can set any config option on a per-user basis.

From man vsftpd.conf:

This powerful option allows the override of any config option specified in the manual page, on a per-user basis. Usage is simple, and is best illustrated with an example. If you set user_config_dir to be /etc/vsftpd_user_conf and then log on as the user "chris", then vsftpd will apply the settings in the file /etc/vsftpd_user_conf/chris for the duration of the session.

So, setting local_root in this way to the desired directory changes the FTP root for just that user.

share|improve this answer

you can try -s option to run a text file containing FTP commands. In that command file you can easily lcd to different dirs.
Please note this option is not available on all the Unix servers.
Can elaborate on your requirement like which OS Win Or *nix etc ??.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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