LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Closed Thread
  Search this Thread
Old 12-04-2007, 07:49 AM   #1
ganeshamutha@gmail.c
LQ Newbie
 
Registered: Sep 2007
Posts: 5

Rep: Reputation: 0
Thumbs up how to create never deleting file.


Hi all..

I want to create a file which never delete from any of command, utility,any user and it should removed only when i format my disk..

Could you any one tell me the solution or idea?


Thanks in advance.
Ganesh
 
Old 12-04-2007, 08:46 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You can set the permissions of any file or directory so that a regular user cannot delete or change it.

Root always has the power to do everything...So there is no way to stop root from deleting it.
 
Old 12-04-2007, 09:27 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Check out the command chattr. It can be used to set special attributes for files and directory. Check out the man page.
 
Old 12-04-2007, 10:44 AM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Reported as a duplicate thread:

http://www.linuxquestions.org/questi...-file.-604393/
http://www.linuxquestions.org/questi...-file.-604392/
http://www.linuxquestions.org/questi...-file.-604395/
 
Old 12-04-2007, 11:14 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Please post your thread once and in only one forum. Posting a single thread in the most relevant forum makes it easier for members to help you and keeps the discussion in one place. This thread is closed because it is one of three duplicates.

Go read and understand the LQ Rules before continuing.
 
  


Closed Thread



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
Deleting a file no working. Lola Kews Linux - Software 43 10-15-2007 04:07 AM
Deleting Contents of File abdul_zu Linux - Software 3 12-04-2005 02:12 PM
Deleting a file starting with a ? bitpicker Linux - General 6 11-24-2004 01:20 PM
deleting a file intellscreen Linux - Newbie 3 11-02-2003 12:39 PM
Deleting a file...... lucifer Linux - Software 0 09-03-2002 03:36 AM

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

All times are GMT -5. The time now is 07:38 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