LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Upload file to ftp server -vsftp- but can not delete or change the file once uploaded (https://www.linuxquestions.org/questions/linux-server-73/upload-file-to-ftp-server-vsftp-but-can-not-delete-or-change-the-file-once-uploaded-735737/)

murattas6 06-26-2009 01:41 AM

Upload file to ftp server -vsftp- but can not delete or change the file once uploaded
 
Hi everyone,

Can anybody tell me the if the following is possible?

Suppose a user upload a file via ftp (to a vsftp server) and once uploaded he can not change,modify or delete his "own" file once uploaded.

"I mean the owner of the file can not change or delete his own file once uploaded"

Only boss can change or delete the file.

It sounds crazy I now.. :)

I think "chattr +i" command cannot be used because it needs root permission
and needs applying this command everytime a new file is uploaded.

Also sticky bit is not working (because he can not delete his own file, not others)

Can we solve this problem via "linux permissions" or "vsftp configuration" ?

Please help me in this "fantastic" problem

Thanks.

GrapefruiTgirl 06-26-2009 04:45 AM

Yes, the configuration for the vsftp server is where to change this behavior. The administrator of the server would need to set the appropriate permissions on the users` upload directory to allow them write (and delete) access.

Sasha

murattas6 06-26-2009 06:00 AM

Quote:

Originally Posted by GrapefruiTgirl (Post 3586884)
Yes, the configuration for the vsftp server is where to change this behavior. The administrator of the server would need to set the appropriate permissions on the users` upload directory to allow them write (and delete) access.

Sasha

I know .. but how??


All times are GMT -5. The time now is 11:17 PM.