PDA

View Full Version : Customising FTP Server Access - help needed



Tobermory
31-08-2005, 20:56
Hi, I have managed to setup an external disk with two partions, one as HFS+ for my Mac (120GB) and the second as FAT32 (350GB). On activating the FTP Server through the gui the ftp_pub and ftp_pvt were created automatically on the FAT32 partition and pdisk listed the HFS+ partitions as Unknown, which is fine - so all good here I think - even though it took me ages to create custom partitions!

What I wanted to do was have users log into the server and have read,write and erase privileges to their own "Upload" directory (ftp_pvt???) and read privileges to all the "Download" directories (those in ftp_pub???).

So far I can't work out how to do this through the gui so I assume it needs some tweaking. It's been a long time since I used Unix/Linux in anger and the brain is struggling - be kind.

Can any of you gurus help?

Thanks for some of the great tutorials so far. Very helpful.

Jethro
03-09-2005, 22:39
If you log into FTP with your admin username/pass you can access both ftp_pvt and ftp_pub dirs with full access rights.
Every additional user you create through the web interface (USB application>FTP server) only has access to the ftp_pub dir. This dir is also the root for those users. You can assign different rights to different users using the web interface.

Try it - success guaranteed ;)

Tobermory
05-09-2005, 13:52
Thanks Jethro, I'm o.k with all of that but I want the users to be able to have read only rights to the ftp_pub and read/write/erase rights to their own directory in ftp_pvt.

I have looked in stupid-ftpd.conf in /tmp and can see user names and passwords and also what looks like directories and permission but I cannot work out what the syntax is for adding additional directories and permissions for each user. For example, there is a current entry like this:

user=username password /ftp_pub/ 1 DUM

How do I add another path under the same username and what does the 1 signify and the DUM?

SaneK
11-09-2005, 23:04
Thanks Jethro, I'm o.k with all of that but I want the users to be able to have read only rights to the ftp_pub and read/write/erase rights to their own directory in ftp_pvt.

I have looked in stupid-ftpd.conf in /tmp and can see user names and passwords and also what looks like directories and permission but I cannot work out what the syntax is for adding additional directories and permissions for each user. For example, there is a current entry like this:

user=username password /ftp_pub/ 1 DUM

How do I add another path under the same username and what does the 1 signify and the DUM?
1 is maximum connections by that account at one time