Changing FTP home directory

clinch

Member
Mar 4, 2005
24
0
151
I'm trying to set up a site using cpanel, and I would like to change the user's FTP home directory to something other than the default. Currently, I have set up a new account for this site, and as expected, when the user logs in via FTP, he/she is brought to:

Code:
/home/username/
I would like to modify this one site (note I do not want to change all the sites on my system) so that when the user logs in via FTP, he/she has an FTP home directory of:

Code:
/home/username/public_html/dev/
This way, I can ensure that all the files uploaded to this directory are going to the right directory. Is there a file or database that contains this information? Can I make the change through WHM or Cpanel, or is it something I must do manually?

Any advice is greatly appreciated.
 

clinch

Member
Mar 4, 2005
24
0
151
Not really what I'm looking for. I know that I can create accounts like that, but I'm hoping there's a way to change the default FTP home directory for a user. Essentially, I do not want the user to have access to anything above public_html/dev/

There doesn't seem to be anything in WHM or Cpanel to handle this.
 

rustelekom

Well-Known Member
PartnerNOC
Nov 13, 2003
290
0
166
moscow
you can correct this by userdmod -d /home/username/public_html/dev username
or just by editing /etc/passwd
but you need to think about how cpanel will work with this setting in future.