Consider the following scenario:
- I have
rwxaccess to a directory as a member of the group id of the directory. - The system admin does not let users run
chown(see this thread for details)
How can I take recursive ownership of the directory?
I believe I can do the following, assuming that I want to own A
cp -R A B
rm -R A
mv B A
but this is tedious and can require a large amount of space if A is large.