[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#80544: [rename] can't rename dir with valid permissions



"Eray Ozkural (exa)" <erayo@cs.bilkent.edu.tr> writes:

> Check it out for yourself:
> 
> orion:Stuff$ ls -ald desktop.*
> -rwxrwxr-x    1 root     windows       125 Nov 20  1998 desktop.ini
> orion:Stuff$ mv desktop.ini desktop.what!
> orion:Stuff$ ls -ald desktop.*
> -rwxrwxr-x    1 root     windows       125 Nov 20  1998 desktop.what!
> orion:Stuff$ mv desktop.what! desktop.ini
> orion:Stuff$ ls -ald desktop.*
> -rwxrwxr-x    1 root     windows       125 Nov 20  1998 desktop.ini
> orion:Stuff$ 

What are the permissions on the directory "Stuff"?

Permission to unlink and rename files in a directory is granted by
write access to the directory that contains the link, not by the
permissions on the file itself.

It's difficult to tell from your initial bug report if you have write
permissions to the directory containing the directory "Rob Zombie"
("mp3") or not.

I just ran a test with gmc and was able to rename a directory within a
directory I had rights to.  I then chowned the parent directory to
root.root, and got the appropriate error from gmc.

At a guess, I would say this is a non-bug.

jason
-- 
``Banks *are* bastards.'' -- John Laws



Reply to: