LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-31-2010, 12:50 PM   #1
mianmajidali
Member
 
Registered: Mar 2008
Posts: 38

Rep: Reputation: 15
Question limited writing permission (dont dell)


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.
Attached Thumbnails
Click image for larger version

Name:	windows permissions.JPG
Views:	8
Size:	40.7 KB
ID:	3232  
 
Old 03-31-2010, 12:56 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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

Last edited by GrapefruiTgirl; 03-31-2010 at 12:58 PM. Reason: added immutable info
 
Old 03-31-2010, 01:07 PM   #3
mianmajidali
Member
 
Registered: Mar 2008
Posts: 38

Original Poster
Rep: Reputation: 15
Question 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.
?????????
 
Old 03-31-2010, 01:25 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Only limited writing access on FAT via NFS micha Linux - Networking 2 10-31-2005 02:37 AM
Very limited space, how do I clean out all programs and clutter I dont need? Javahulk Linux - General 1 03-19-2005 10:30 PM
Limited permission on FTP user stefane321 Linux - Security 3 03-04-2005 07:21 PM
I edited startx now I dont have permission to it nickbird Slackware 3 07-25-2004 12:28 PM
I dont have permission! lesmond Linux - Newbie 3 04-25-2004 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration