Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 23:37
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Make files undeletable with chattr
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: Mon 14 Nov 2005, 13:53    Post_subject:  Make files undeletable with chattr  

Here is a cool tip on how you can make files on your system immutable. By immutable, I mean even root can't delete the files if he choose to. Linux ships with a tool called chattr which can be used for the purpose. 'chattr' is similar to the 'attrib' DOS equivalent tool but much more powerful and flexible.
To make your file (test_file) immutable

# chattr +i test_file

Full info
http://tinyurl.com/9mkzk

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
brad_chuck

Joined: 15 Aug 2005
Posts: 284
Location: Appalachian Mountains

PostPosted: Tue 15 Nov 2005, 06:48    Post_subject: Thanks.  

Cool.. This could be usefull some day.

chattr +i brad's_10_page_paper.txt
Back to top
View user's profile Send_private_message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Tue 15 Nov 2005, 18:57    Post_subject:  

Lobster-proof system:
chattr +i -R /*
(assuming it has the -R recursive option)

Just kidding. I haven't heard of you crashing and burning in months. You must have learned to waddle over ice like a true penguin-puppy-lobster hybrid Wink

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0414s ][ Queries: 12 (0.0051s) ][ GZIP on ]