"permission denied" error as root
This is REALLY bizarre. I've never heard of anything like this. I was bored so I tried one of the examples from info coreutils 'tee invocation' relating to du. Long story short, I ended up doing sudo du (followed by a pipeline). I got one "permission denied" error. That intrigued me. In a root shell, I did
# cd .gvfs
-bash: cd: .gvfs: Permission denied
Note: # is the command prompt, not a comment. The '-' in front of "-bash" isn't a typo on my part
WTF? How can root be denied permission? And wtf is "-bash" (as opposed to just "bash"). As myself, I did
~$ ls -Ald .gvfs
dr-x------ 2 me me 0 2008-05-26 12:09 .gvfs
~$ cd .gvfs
~/.gvfs$
Note: username replaced with "me"
Those permissions look awfully strange. The weird part is that the lack of permission for root is not constrained to cd ing, it also applies to chmod (and presumably others...), which troubles me. If I can do this (I really don't know where that dir. came from, but I "own" it...)... why can't a virus/cracker do it?
Can anyone explain how it is that I can do something root can't?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Fred
- Solved:
- Last query:
- Last reply:
This question was reopened
- by Thinboy00