linux - How to prevent the accidental deletion of a file but give write permission -
i have status file called dbstatus.log
in linux , want prevent accidental deletion. tried chattr -a filename
, when try write file using script, it's giving error e212: can't open file writing.
can please suggest me how prevent deletion of file give write permission. current permissions -rw-rw-r--
.
Comments
Post a Comment