bug-fileutils
[Top][All Lists]
Advanced

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

chown


From: Wilco de Vries
Subject: chown
Date: Wed, 26 May 2004 15:54:50 +0200

Hi,

as a new user to linux, but well-know with UNIX-systems, I found it
rather strange to see what happens whenever I use the chown command.

I (userone) create a file in /tmp and want to make usertwo owner of it:
userone and usertwo both are normal users of the system.

> id
uid=250(userone) gid=1002(mnp) groups=1002(mnp)
> id usertwo
uid=5003(usertwo) gid=2003(other) groups=2003(other)
> cd /tmp
> touch aa
> ls -l
-rw-r--r--    1 usertwo  other           0 May 26 15:25 /tmp/bb
-rw-r--r--    1 userone  mnp             0 May 26 15:28 /tmp/aa
> chown usertwo aa
chown: changing ownership of `aa': Operation not permitted
> ls -l
-rw-r--r--    1 usertwo  other           0 May 26 15:25 /tmp/bb
-rw-r--r--    1 userone  mnp             0 May 26 15:28 /tmp/aa
> chmod 777 aa
> ls -l
-rw-r--r--    1 usertwo  other           0 May 26 15:25 /tmp/bb
-rwxrwxrwx    1 userone  mnp             0 May 26 15:28 /tmp/aa
> chown usertwo aa
chown: changing ownership of `aa': Operation not permitted
> chgrp other aa
> ls -l
-rw-r--r--    1 usertwo  other           0 May 26 15:25 /tmp/bb
-rwxrwxrwx    1 userone  other           0 May 26 15:28 /tmp/aa
> chown usertwo aa
chown: changing ownership of `aa': Operation not permitted
> ls -l
-rw-r--r--    1 usertwo  other           0 May 26 15:25 /tmp/bb
-rwxrwxrwx    1 userone  other           0 May 26 15:28 /tmp/aa
> chown 5003 aa
chown: changing ownership of `aa': Operation not permitted
> ls -l
-rw-r--r--    1 usertwo  other           0 May 26 15:25 /tmp/bb
-rwxrwxrwx    1 userone  other           0 May 26 15:28 /tmp/aa


Is this normal functionallity or is something wrong on our system?

Regards,

Wilco de Vries.



____________________________________________________________________________

"Dit bericht en eventuele aangehechte bestanden zijn vertrouwelijk en
uitsluitend bestemd voor de geadresseerde. Ongeautoriseerde verstrekking of
bekendmaking aan en gebruik door anderen zijn niet toegestaan. Als u dit
bericht per vergissing hebt ontvangen wordt u verzocht dit onmiddellijk aan
de afzender te melden en het bericht van uw systemen te verwijderen.
De werkgever van de afzender kan niet garanderen dat de verzonden en/of
ontvangen informatie juist is en aanvaardt geen aansprakelijkheid voor
schade die eruit kan voortvloeien."

"This message and any files transmitted with it may contain confidential
information and is solely intended for the addressee(s). Any unauthorized
disclosure or actions taken in reliance on it are forbidden. If you have
received this message in error, please delete it and notify the sender.
The employer of the sender does not guarantee that the information sent
and/or received is correct and does not accept any liability for damages
related thereto."






reply via email to

[Prev in Thread] Current Thread [Next in Thread]