How do I prevent a folder and file permissions from being changed?
Linode
Linode Staff
The permissions for a folder on my server keeps being changed. How can I prevent this from reoccurring?
1 Reply
jchism
Linode Staff
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