PDA

View Full Version : Linux: How to prevent root writing in some directory / modiffy file ?



Fli
03-29-2015, 11:22 AM
Hi,

what are ways to prevent system/scripts or root user writing to some directory or file on Linux filesystem?

so far i think this is the way to prevent:

chattr +i folderorfilename

to allow writing again:

chattr -i folderorfilename