Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-29-2002, 11:53 AM   #1
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Rep: Reputation: 15
Problem with chattr


Can someone do me a favour and try this

Create a file and call it test.txt

touch test.txt

then do chattr +u test.txt as root

Then try to remove the file rm test.txt

You should not be able to remove the file after the undeleteble flag is set, but I can do so on my system, strange

I'm using ext3.

Please try this at home at tell me if it worked at your system , thanks
Old 12-29-2002, 12:48 PM   #2
Registered: Jul 2002
Posts: 143

Rep: Reputation: 15
I can blow away a file with +u set on an ext3 partition.

If you set +i then forget it. its read only to even root. but undeletable

From the man page, When a file with the `u' attribute set is deleted, its
contents are saved. This allows the user to ask for its


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chattr not working JJX Linux - Newbie 3 10-18-2005 04:39 AM
chattr + 2.4.20-lq2? tarballedtux Linux - Security 3 01-06-2003 09:30 AM
need help with chattr ruprick Linux - Newbie 4 02-19-2002 11:39 AM
chattr +i to all files on my box? ForumKid Linux - Security 3 01-07-2002 11:58 AM
chattr usage sancho5 Linux - General 0 11-21-2001 03:02 PM

All times are GMT -5. The time now is 02:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration