linux - cannot delete /var/log/acpid file -


i owner of file, , have right permission think. why can't operations below: (i have delete it. / full.)

[root@dbsvr log]# ll -ah acpid -rw-r----- 1 root root 84g jun  1 14:14 acpid  [root@dbsvr ~]# rm -rf /var/log/acpid rm: cannot remove `/var/log/acpid': operation not permitted  [root@dbsvr ~]# > /var/log/acpid -bash: /var/log/acpid: operation not permitted  [root@dbsvr ~]# chmod 660 /var/log/acpid chmod: changing permissions of `/var/log/acpid': operation not permitted 

in order change permissions , / or delete file need write permissions parent directory of file. also, file's attributes might come play (see man chattr).

please note deleting file while process still has file open won't free disk space occupied file. case if remove example log file while syslogd still tries write it.

edit: please explain downvotes?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -