what does the a
in chattr +ia <filename>
do? and why would you add the a
in combination with the i
? note: I know the i
is for immutable
Linux – what does the “a” in chattr +ia do
filesystemslinuxpermissionsxattr
filesystemslinuxpermissionsxattr
what does the a
in chattr +ia <filename>
do? and why would you add the a
in combination with the i
? note: I know the i
is for immutable
Best Answer
Files with this flag will fail to be opened for writing. This also blocks certain potentially destructive system calls such as
truncate()
orunlink()
.This option is designed for log files.