chown

From: Drew Mazurek (andrew.mazurek@yale.edu)
Date: Sat Jan 29 2000 - 18:01:05 EST


If I own the directory that I'm currently in, and I own the file I
want to modify, why can't I chown a file to someone else? For
example:

tweek{aam26}9> ls -al
total 760
drwx--x--x 10 aam26 users 4096 Jan 27 22:14 ./
drwxr-xr-x 10 root root 4096 Jan 29 15:50 ../
...
-rw------- 1 aam26 users 326 Dec 30 13:41 dead.letter
...
tweek{aam26}10> chown nobody dead.letter
chown: dead.letter: Operation not permitted
tweek{aam26}11>

I assume there's a reason for it to be this way, but I can't guess
what it is. Is there a way a non-root user can change ownership of a
file?

- Drew



This archive was generated by hypermail 2b29 : Wed Apr 27 2005 - 03:30:03 EDT