LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   limited writing permission (dont dell) (https://www.linuxquestions.org/questions/linux-security-4/limited-writing-permission-dont-dell-799174/)

mianmajidali 03-31-2010 12:50 PM

limited writing permission (dont dell)
 
1 Attachment(s)
hi to all
in windows, i apply the permissions on directory that, user can only read, write and execute the data, but Cant delete. ( shown in attached snapshot).
i want to implement this in Linux.
please guide me with an example briefly.. .

thanks.

GrapefruiTgirl 03-31-2010 12:56 PM

I believe what you're looking for is the "restricted deletion flag" or "Sticky bit", which prevents unprivileged users from deleting or renaming files unless they own the file and/or the directory containing it.

See the man page for `chmod` and see if this is the information you need:

Code:

shell# man chmod
Also look up the "immutable" attribute; you can read about that here: http://linuxhelp.blogspot.com/2005/1...hich-even.html

Sasha

mianmajidali 03-31-2010 01:07 PM

this limitations for owner
 
dear brother the deletion limitation applied on Owner of that file or data, i done this using administrative rights to limit rights of users. so plz tell me how to make limited rights of owner.
?????????

GrapefruiTgirl 03-31-2010 01:25 PM

That would be 'sister', not brother! Thank you.

Now, your latest post, I do not understand. Did you examine the man page and the documentation at the link I provided? I am quite certain that one of the two applies to what you are trying to do.

Check the man pages for chattr and chmod. Then, if you cannot figure out what you're doing, show me a real example of what you are trying to achieve: create a test file or test directory, and in your console, examine the permissions (show me `ls -la`) and then show me what you want to change about those permissions. Copy all output from your console, into your next post.

Sasha


All times are GMT -5. The time now is 01:36 PM.