CHMOD To Prevent Deletion Of File Directory
Posted
by Sohnee
on Server Fault
See other posts from Server Fault
or by Sohnee
Published on 2010-03-23T10:42:24Z
Indexed on
2010/03/23
11:03 UTC
Read the original article
Hit count: 588
I have some hosting on a Linux server and I have a few folders that I don't ever want to delete. There are sub folders within these that I do want to delete.
How do I set the CHMOD permissions on the folders I don't want to delete?
Of course, when I say "I don't ever want to delete" - what I mean is that the end customer shouldn't delete them by accident, via FTP or in a PHP script etc.
As an example of directory structure...
MainFolder/SubFolder
MainFolder/Another
I don't want "MainFolder" to be accidentally deleted, but I'm happy for "SubFolder" and "Another" to be removed!
© Server Fault or respective owner