3
On a debian system, I'm logged in as root.
I cannot create any files in /bin, /usr/bin, /sbin or /usr/sbin.
I can create files in /, /usr, /usr/local, /usr/share, etc, etc.
All these directories are owned by root and have permission 755.
The partition is not full.
touch /usr/bin/foo
touch: cannot touch `/usr/bin/foo': Permission denied
(and the file does not already exist)
touch /usr/local/foo
(no error)
Also, chown and chmod fail on directories named "bin" or "sbin", but not on other directories.
1Some directories under /usr are marked "I" (not "i" for immutable). It turns out root can't write to any of the directories marked "I".
man chattr sez: The "I" attribute is used by the htree code to indicate that a directory is being indexed using hashed trees. It may not be set or reset using chattr(1), although it can be displayed by lsattr(1).
I have no idea what that means, or why directories would be stuck in this state, but you've set me off in the right direction. – None – 2009-11-14T03:08:20.220