LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   preventing deleting of directory (https://www.linuxquestions.org/questions/linux-newbie-8/preventing-deleting-of-directory-886323/)

tdmarshal 06-14-2011 01:46 PM

preventing deleting of directory
 
i need to restrict access of deleting to directory and partitions os disk? how do i do it?

unSpawn 06-14-2011 02:29 PM

Put the disk on a (forensic) write blocker? If that's impractical please elaborate.

jefro 06-14-2011 03:59 PM

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?

jv2112 06-15-2011 04:51 AM

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.


:study: More info->


man chattr

man lsattr

Hope this helps.

tdmarshal 06-23-2011 10:42 AM

Quote:

Originally Posted by jv2112 (Post 4386190)
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.


:study: More info->


man chattr

man lsattr

Hope this helps.

how do i add the immutable attribute to a directory and partition?

colucix 06-23-2011 10:47 AM

jv2112 already told you: do
Code:

man chattr
and look for the immutable flag. You can change attributes of files/directories, not partitions.


All times are GMT -5. The time now is 07:40 AM.