LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ftp Daemon (https://www.linuxquestions.org/questions/linux-software-2/ftp-daemon-40440/)

Half_Elf 01-06-2003 01:01 AM

Ftp Daemon
 
I'm looking for a Ftp Daemon that is not using the Unix files right... I want to put right on a Fat32 FS.

Very hard to find... Anyone know?

Mik 01-06-2003 03:15 AM

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.

Or am I reading your question wrong?

Half_Elf 01-06-2003 02:26 PM

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.

Mik 01-07-2003 08:45 AM

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.

Half_Elf 01-07-2003 06:31 PM

Ok Thanx, I will try it


All times are GMT -5. The time now is 09:52 PM.