in reply to Re^2: perl binary size reducing
in thread perl binary size reducing

Note that a root user can still do whatever he wants with the file.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: perl binary size reducing
by rminner (Chaplain) on Nov 28, 2013 at 10:50 UTC
    As long as he executes
    chattr -i file
    
    first. Without this even root can not modify/delete the file.
    I like to protect important files with the immutable flag. As such an accidental deletion/modification is very unlikely, since even rm -rf as root won't work on a file with an immutable flag set.