confusing permission behaviour
Joeri De Backer
jdb at c-w.be
Thu Oct 20 11:55:43 UTC 2005
>-----Original Message-----
>From: Jens [mailto:commercial at acamedia.org]
>Sent: Thursday, October 20, 2005 1:48 PM
>To: ubuntu-users at lists.ubuntu.com
>Subject: confusing permission behaviour
>
>cd ~/
>mkdir test
>cd test
>sudo touch file
>sudo chown root:root file
>sudo chmod og-rwx file
>
>now - this is what is puzzling - as ordinary user joe:
>rm -f file
>
>and after asking for permission linux allows user joe to
>delete a file to
>which he has no write permission - let alone read or execute.
To delete a file, you only need the permissions on the directory. (rwx)
The permissions on the file doesn't matter.
Joeri.
More information about the ubuntu-users
mailing list