Linux – How to delete a directory you don’t own in an NFS directory you do

linuxnfspermissions

There should be a simple answer to this, but I can't find it.

~me/work>ls -la
drwxrwxr-x  3  me       mygroup  .
drwxrwxr-x  3  me       mygroup  ..
drwxrwxr-x  3  me       mygroup  folder1
drwxr-xr-x  3  person2  mygroup  folder2

This is in my home directory, which is an automounted NFS. Somebody in my group created folder2 in my home directory and then left for vacation.

I can't delete the folder… I can't move it… can't change permissions on it. How can I get rid of it? My sysadmin has no clue.

Best Answer

If you're talking to your sysadmin just get him to run within the directory

su -c "rm -r folder\ 2"

Or

su -c "chown [me] folder\ 2"

where [me] is your username... and delete it yourself

I'll look into another way - but these will certainly work

Related Topic