You are not logged in.

#1 2007-04-10 16:41:08

ryurhrt
Member
Registered: 2007-03-17
Posts: 27

proftpd permission setup, howto?

current i am working on setting up a local FTP server for file sharing purpose, but i face one problem, i want to make my ftp server to act like file server, and whoever can create file on it, but only the owner can delete the file.

anyone one know how to set it ? or recommend me other type of file server???

Offline

#2 2007-04-10 17:54:53

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: proftpd permission setup, howto?

You can set access rights on exported directory to 1777, should do the trick.

Last edited by briest (2007-04-10 17:57:47)

Offline

#3 2007-04-11 18:19:45

ryurhrt
Member
Registered: 2007-03-17
Posts: 27

Re: proftpd permission setup, howto?

1777? then everyone can delete others' file, am i wrong?

Offline

#4 2007-04-11 20:05:05

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: proftpd permission setup, howto?

Yes, you are. See man chmod, section "RESTRICTED DELETION FLAG OR STICKY BIT":

For directories, it prevents unprivileged users from removing or renaming a file  in  the  directory unless  they  own  the  file  or  the  directory

Looks like it suits your needs.

Offline

Board footer

Powered by FluxBB