How to Read, Write, Execute but not Delete
Does Linux have provision for some type of ACL? I want a user to be able to READ Write and Execute, but not Delete. How could those permissions be set on a folder?
|
Take away their execute permission for the rm command and any other commands that can delete a file.
|
how do you want them to be able to write to or
delete stuff out of a file, but not delete it. if they can delete everthing in a file, what difference does it make if they can delete it? |
The argument is misleading... If you can Write, you can sure as heck delete... Even without actually rm -rf file.
Edit the file, delete everything inside it. Save it. It's as good as deleted. |
Quote:
|
I am setting up an FTP with vsFTpd. In the Incoming folder, I want the user to be able to create the file and folder, see what he has created, but not be able to delete anything after he uploaded.
Here are my results when dealing with the Incoming directory and don't suggest I haven't tried to figure this out on my own <grin>, that's half the fun! rx- Failed to change directory -wx Failed to open directory r-x Able to enter INCOMING Can't delete files or folders Can see everything Create directory fails r-- Failed to chage directory -w- Failed to change directory --x Able to change to incoming Able to see everything Failed to open directory ftpusers group has ownership chown -R root:ftpusers /home/ftp/Incoming ftp users group has permissiond to Incoming folder chmos -R 744 /home/ftp/Incoming ftpusers are able to delete *anything* from the Incoming folder and this is not acceptable Help! |
this is not very hard to do... there's probably an option in your ftp server to set the UID/GID of files uploaded. Just make sure every files uploaded will be owned by another user, not by the user who upload them.
So every user will be able to play with files they own, but not with files they uploaded. I use PureFtp and it support it (prolly most ftp server have option like this too) |
All times are GMT -5. The time now is 06:02 AM. |