CHMOD To Prevent Deletion Of File Directory
- by Sohnee
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!