JonathanYoung
Senior member
Hi all,
I'm currently taking a UNIX course, and right now we're studying permissions. In class the other day, I learned that if you have write permission to a directory, you can basically delete that directory because you can change that directory's "file table". So, I tried an experiment by using the command mv to copy over files from my professor's public directory and keeping the same permissions as in my prof's directory to a test directory in my home. When I tried rm -r on test, I deleted everything except those files which I didn't have permission to. I can't change permissions on those files because I am neither owner nor in the same group. Does anyone know how to remove these files from my home directory now? I think it doesn't work because rm -r doesn't edit a directory's "file table" directly, but rather recursively goes into each directory to delete stuff, and when it encountered my prof's files, it couldn't delete them. Any way to just delete test without checking what's in it? THanks in advance for any replies!
In summary:
I own directory "test" with full permissions.
I copied professor's files over into test, kept his permissions.
Tried to rm -r test but couldn't delete prof's files.
Help!
Edit: I don't have root access!
I'm currently taking a UNIX course, and right now we're studying permissions. In class the other day, I learned that if you have write permission to a directory, you can basically delete that directory because you can change that directory's "file table". So, I tried an experiment by using the command mv to copy over files from my professor's public directory and keeping the same permissions as in my prof's directory to a test directory in my home. When I tried rm -r on test, I deleted everything except those files which I didn't have permission to. I can't change permissions on those files because I am neither owner nor in the same group. Does anyone know how to remove these files from my home directory now? I think it doesn't work because rm -r doesn't edit a directory's "file table" directly, but rather recursively goes into each directory to delete stuff, and when it encountered my prof's files, it couldn't delete them. Any way to just delete test without checking what's in it? THanks in advance for any replies!
In summary:
I own directory "test" with full permissions.
I copied professor's files over into test, kept his permissions.
Tried to rm -r test but couldn't delete prof's files.
Help!
Edit: I don't have root access!