Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-06-2012, 02:32 AM   #1
LQ Newbie
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
Question sticky bit:how to restrict the owner to delete files??

as you know by means of chmod it's possible to restrict users in different ways,exp:with -t we can restrict o,g users to delet files;but how to restrict the owner from deletion his files??
Old 03-06-2012, 02:52 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hello and welcome to LinuxQuestions,

I'd have a look at the man page for chattr. There are some possibilities in there, depending on what exactly you want to do with the file, restrict from deletion/editing/etc.., only append data to the file. Problem is that under all circumstance, AFAIK, the owner has full power on the files he created unless if root set the file to be immutable (chattr +i) or append-only. You could configure the rm command to be interactive if it's not to ask for confirmation whenever someone wants to delete a file but I guess that's not what you're looking for.

Hope this helps.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sticky situation bcos of sticky bit Voyager7 Linux - Newbie 4 03-01-2011 12:29 AM
sticky bit lipun4u Linux - Newbie 8 02-28-2010 05:17 PM
sticky bit: how to protect directories but not files inside alexandrusa Linux - Server 8 03-27-2008 11:35 AM
About Sticky bit... masudur_iiu General 4 09-13-2006 11:23 AM
sticky bit motiram Linux - General 1 08-01-2001 01:34 PM > Forums > Linux Forums > Linux - Software

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

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