PDA

View Full Version : javelin S4 FTP default directory



Brewmaster
03-27-2012, 10:13 PM
I am attempting to find a way to set the default directory for a user so when they ftp in they are already in the correct directory for uploading. Currently it dumps them in Volume1 then they have to navigate their way to the directory for uploads.

Is this possible? Am I missing something?

Thanks for your help,

Kelvin Krastel

ruben00
03-28-2012, 03:18 PM
Not without some hacking around first (do the following at your own risk)
Note: I'm assuming you have Rooter Installed with Console Access

The Config File for ProFTPD sits in /etc/config/proftp/etc/proftpd.conf

You are looking for the DefaultRoot setting (that way you trap the user in that folder)
Change it to /VOLUME1/UPLOAD !admin

Then restart FTP Services
/etc/init.d/ftp stop
/etc/init.d/ftp start

Now when you login as a regular user, it will take/trap them in the UPLOAD folder
if you login as admin, you get dropped to the root (/) where you see the VOLUME1 folder

By the way, these settings WILL survive a reboot!!

My settings are to trap the user to his home folder, except for the admin group members
http://www.patriotmemory.com/forums/attachment.php?attachmentid=676&d=1332948535
676