How do I prevent a folder and file permissions from being changed?
The permissions for a folder on my server keeps being changed. How can I prevent this from reoccurring?
1 Reply
You can set an immutable flag on the folder to prevent his from occurring. This also can be used on files too. here's an example of the command:
chattr +i folder_name
chattr +i file_name
To remove this flag, you can use the "-i" option:
chattr -i folder_name
chattr -i file_name