Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why is this a problem? I've never specifically tried it, but as far as I know the filesystem doesn't make a difference to the ftp daemon. At least it shouldn't. You just have to make sure the ftp daemon has the proper permissions to access the fat32 partition.
Well, most ftp daemon use the unix file right and ownership. Fat32 doesn't support right or ownership change, of course. Habitually, I'm mounting my Fat32 partition with read&write for the users group, so MY personnal user (the user I'm personnaly using instead of root...) can modify the partition.
I have a dual boot system (I need windoze sometime to do my university homework) all my "important" (homeworks, music files, movie, archive) files are on the FAT32 partition, so I'm able to use is either in linux or windoze.
But I want my "ftp user" (mostly friend, but also some people I don't know or trust too much) to be able to write in some directory of that partition, but to have read only right in some other directory... Because I can only give a "global" file right and ownership to Fat32 partition at mount, it's very hard to do.
So I'm looking for a ftp daemon able to put right and ownership on Fat. I'm currently using one, but the last update of the software was made by his author 3 long years ago, and he stop working on it then. So I'm not really sure I can trust this software.
I've never tried it like this, but according to the documentation on the proftpd site you should be able to do something like this:
Code:
# disable writing to the fat32 drive
<Directory /mnt/fat32>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
# allow storing files in the upload directory
<Directory /mnt/fat32/upload/*>
<Limit STOR>
AllowAll
</Limit>
</Directory>
I haven't tested any of this. But proftpd is pretty flexible in setting up specific permissions for files and directories. You should read the documentation for more information.
You can also create a .ftpaccess file in a specific directory which will contain a Limit directive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.