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

Popular posts from this blog

sql server - MSSQL Text and Varchar(MAX) fields shown (MEMO) in DBGrid -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

mysql - Flyway migration, Unable to obtain Jdbc connection from DataSource -