Old 17th January 2008, 21:17
iyeat iyeat is offline
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post
Default PureFTPD & Subdirectories

Greetings all,

I'm wondering if there is a way, with PureFTPD, to create subdirectories within auto-created FTP home directories.

For example, let's say I have a user "foo" on my pureftpd server, with a home directory of /home/foo.

The first time the user foo logs into my server, pureftpd attempts to chroot foo to /home/foo -- and if /home/foo does not exist, it creates it automatically.

I would also like pureftpd to also create a subdirectory structure within the user's home directory.. in my case for Web hosting customers -- /home/foo/htdocs, /home/foo/cgi-bin, /home/foo/private, etc.

Is there a way to do this? I searched the docs but didn't find a good answer.


Reply With Quote
Sponsored Links
Old 17th January 2008, 23:24
unclecameron unclecameron is offline
Senior Member
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts

If you tied it into a skel function somehow, that'd do it
Reply With Quote
Old 18th January 2008, 01:10
iyeat iyeat is offline
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post

Normally if my FTP users were also system users, using /etc/skel would work great...

Unfortunately, my pureftpd setup uses MySQL as a backend, so I can't use /etc/skel -- However, is there a way to run a script when these directories are created? My setup is using Fedora 8... I'm looking for a solution to within pureftpd itself, however I suppose I could turn to a process external to pureftpd.

Reply With Quote
Old 18th January 2008, 20:14
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

Maybe you can do this with a cron job that checks if the directories exist and creates them if they don't.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PureFTPd and MySQL: error exit status 252 marsvin Server Operation 20 13th May 2009 13:03
pureftpd and apache2 file permissions thesquib HOWTO-Related Questions 1 29th November 2007 16:40
PureFTPD and Mysql Questions chrchcol Server Operation 1 4th September 2006 00:07
Pureftpd exit 252 Tortanick Server Operation 7 4th June 2006 11:52
PureFTPD question Tortanick Server Operation 4 22nd April 2006 17:36

All times are GMT +2. The time now is 19:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.