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