Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a file on one of the servers I manage that i cannot modify with the root account. This file resides within a web application and contains configuration settings; I suspect that a previous admin may have done something to prevent the file from being overwritten.

Attempts to delete the file result in 'permission denied' type messages, though the file has write permissions. It also does not show up in the output of lsof and its inode is not listed in /proc/locks. The file resides in an ext3 lvm volume stored on the local hd. SELinux is disabled.

Does anyone have any idea what could be preventing write access?

share|improve this question
up vote 7 down vote accepted

Look at it with lsattr, then use chattr if necessary to change the flags. It probably has the immutable attribute set.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.