Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.