Is this correct behavior?  I cant change the owner or permissions of a
root  owned file with out sudo, but I can delete it with out sudo.

r...@blackbox:~$ mkdir test
r...@blackbox:~$ cd test
r...@blackbox:~/test$ touch test
r...@blackbox:~/test$ chown root:root test 
chown: changing ownership of `test': Operation not permitted
r...@blackbox:~/test$ sudo chown root:root test 
[sudo] password for rob: 
r...@blackbox:~/test$ chmod a-w test 
chmod: changing permissions of `test': Operation not permitted
r...@blackbox:~/test$ sudo chmod a-w test 
r...@blackbox:~/test$ vdir
total 0
-r--r--r-- 1 root root 0 2009-06-13 11:31 test
r...@blackbox:~/test$ rm test
rm: remove write-protected regular empty file `test'? y
r...@blackbox:~/test$ vdir
total 0
r...@blackbox:~/test$

-- 
User can delete file owned by root with rm.
https://bugs.launchpad.net/bugs/292447
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to