[Kolab-devel] [PATCH] better modes

Richard Bos ml at radoeka.nl
Thu Jun 17 18:37:52 CEST 2010


Op donderdag 17 juni 2010 13:40:10 schreef u:
> On Thursday 17 June 2010 13:03:25 Thomas Arendsen Hein wrote:
> > In other words: If mode 444 affects the usage of chown on your
> > system, this is something special to your system, so you should tell
> > us what it is.
> 
> On Debian Lenny:
> chris at kolab-lenny:~$ touch something
> chris at kolab-lenny:~$ chmod 444 something
> chris at kolab-lenny:~$ chown kolab something
> chown: Ändern des Eigentümers von „something“: Die Operation ist nicht
>  erlaubt chris at kolab-lenny:~$ ls -l something
> -r--r--r-- 1 chris chris 0 17. Jun 15:23 something
> 
> Same on Fedora:
> [chris at laptop ~]$ touch something
> [chris at laptop ~]$ chmod 444 something
> [chris at laptop ~]$ chown apache something
> chown: Ändern des Eigentümers von „something“: Die Operation ist nicht
>  erlaubt [chris at laptop ~]$ ls -l something
> -r--r--r--. 1 chris chris 0 17. Jun 13:13 something
> 
> Only root has CAP_CHOWN, not normal users.


What happens if you do:
# touch this
# chown apache this
# ls -l this
 

-- 
Richard




More information about the devel mailing list