Permission denied to root trying to remove directory
Trying to rmdir in Opensuse 11.1 as root. Error returned is "Permission denied". Perms are drwxrwxsr-x.
I have tried command line and Konqueror with equally dismal results. Also, tried to search for an answer without luck. I am a casual linux user only. Help! |
Hi,
Seems like the folder has attributes set in it. Can you try the following command.?.. and paste the output here. lsattr <filename> |
Quote:
Code:
~$ lsattr hardware.txt ciao, jdk |
Hi,
@jdkaye: Quote:
Code:
$ grep tmp /etc/fstab Hope this helps. |
Quote:
Quote:
thanks, jdk |
Hi,
Quote:
The man page does explicitly mention ext2, but it does work on ext3 (as I showed in my previous post). I don't have access to ext4/ReiserFS at the moment, but I'm almost certain it works on ext4. Don't know about ReiserFS though, I do believe you need a patched lsattr/chattr version. Hope this helps. |
Who is the owner of the file. Pls paste the following o/p
ls -al filename |
DIR owner is root:root
Someone suggested removing the parent directory. As I look back on it, that's not something I tried. Stay tuned and thanks for all the info so far. |
That fixed it.
Thanks again. |
The directory has the SGID ( Octal 2775 ) set. So the directory contents permissions are determined by the group. In this case root. So the only two sets of people who can write to the files or directory are the group or owner. You would need to modify as root ( su / sudo ) .
Hope this helps. :) |
rmdir - remove empty directories
is it empty ? |
All times are GMT -5. The time now is 10:09 AM. |