Help - Search - Members - Calendar
Full Version: I want FTP accounts to start in a different directory than the chroot directory
The Planet Forums > Control Panels > cPanel/WHM
andreseso
Hello,

At the moment I am using pureftpd as the FTP deamon in my Cpanel 9.x instalation

I want to set up the following directory structure for ftp

/userdir/public_html
/userdir/public_html/user1
/userdir/public_html/user2
/userdir/public_html/user3

user1, user2 and user3 are all chrooted to /userdir/public_html but when they do a FTP login I want the home directory, where they log on, to be /userdir/public_html/user1 and so on

So when they do a FTP login I want the directory tree they see to be
/user1/

instead of
/

so they all have access to each others home directories but start in their own directory

Andres
chirpy
If you're using proftpd, you can edit the individual configuration file in /etc/proftpd/username and change the paths in that file - it's the second from last entry in the line, separated by colons. Then stop and start proftpd.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.