LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 15
Problem with chattr


Hi

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, 11:48 AM   #2
turnip
Member
 
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
undeletion.
 
  


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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:56 PM.

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