LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2011, 02:46 PM   #1
tdmarshal
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Rep: Reputation: Disabled
preventing deleting of directory


i need to restrict access of deleting to directory and partitions os disk? how do i do it?
 
Old 06-14-2011, 03:29 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Put the disk on a (forensic) write blocker? If that's impractical please elaborate.
 
Old 06-14-2011, 04:59 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Filesystem and user permissions restrict tasks of normal users.

If one has physical access to a system there is almost no control that would prevent such action. We have some disks that we use as read disks. They have a jumper that denies any writes while the secondary disk is writable.

Hello by the way.

What are you trying to do exactly?
 
Old 06-15-2011, 05:51 AM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
I believe if you add the attribute of "I" (immutable) to the directory the only user who could nuke it would be root. So as long as you are conservative with who gets passwords then you should be all set.


More info->


man chattr

man lsattr

Hope this helps.
 
Old 06-23-2011, 11:42 AM   #5
tdmarshal
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jv2112 View Post
I believe if you add the attribute of "I" (immutable) to the directory the only user who could nuke it would be root. So as long as you are conservative with who gets passwords then you should be all set.


More info->


man chattr

man lsattr

Hope this helps.
how do i add the immutable attribute to a directory and partition?
 
Old 06-23-2011, 11:47 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
jv2112 already told you: do
Code:
man chattr
and look for the immutable flag. You can change attributes of files/directories, not partitions.
 
  


Reply


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
Deleting a directory esm03 Linux - Newbie 2 06-28-2006 12:15 PM
Preventing apache from shoving directory contents! Shioni Linux - Software 2 06-19-2006 03:39 PM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 07:05 AM
home directory permissions get reset periodically, preventing use of apache UserDir rennard Linux - Security 2 08-03-2004 08:21 PM
preventing directory traversal in programs tristan_vdv Linux - Security 4 06-04-2002 05:03 AM


All times are GMT -5. The time now is 04:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration