LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to Read, Write, Execute but not Delete (https://www.linuxquestions.org/questions/linux-software-2/how-to-read-write-execute-but-not-delete-64117/)

r042wal 06-06-2003 10:29 PM

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?

nuadastorm 06-06-2003 10:53 PM

Take away their execute permission for the rm command and any other commands that can delete a file.

whansard 06-06-2003 11:05 PM

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?

Azmeen 06-06-2003 11:07 PM

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.

nuadastorm 06-06-2003 11:20 PM

Quote:

Originally posted by Azmeen
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.

I actually thought of that but was going to let him find out on his own.

r042wal 06-07-2003 06:49 AM

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!

Half_Elf 06-07-2003 11:05 AM

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.