mv is just a rename of the file. So, if you have write permission for the directory that the file is in, you can change the name of the file. You can also remove a file if you have permission for the directory.
So, the example that you gave is the correct behaviour. Balaji On Friday 26 October 2001 14:19 pm, you wrote: > I've not tried this on non-Mandrake boxes, but I think it may be a > problem with linux in general not just Mandrake. > > As root > > touch /home/user/test1;chmod 600 /home/user/test1 > touch /home/user/test2;chmod 600 /home/user/test2 > > As user > > mv test1 test3 > mv test2 test3 > > Both succeed with no trouble (the 2nd one will ask if you want to > override the mode 600). mv basically does a cp and a rm doesn't it (I > didn't look at the source, just guessing) and you shouldn't be able to > rm a file you don't have permission to write on. > > You can mv the files anywhere in your home dir you have write > permissions, but you can't seem to move to say /tmp It would seem that > if an admin put a specific file in your home dir that they didn't want > you to modify, you could either move it or even replace it with this > setup. I'll admit this would be a little odd, but still a bug. > > Since I'm not sure who to report this too, someone please let me know. > > Julia Thanks, Balaji
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
