I'm a novice on Linux so I suspect this is an easy question. :-)
I'm trying to change ownership of a file to another user, but am getting an "Operation not permitted" error.
In the following example, user "rob" runs chown on a file named "foobar", which is owned by "rob". Shouldn't the current owner of the file be able to change the owner to someone else? In this example, the desired new owner is user "www-data".
rob@mc-web1:/data01/home/rob/test$ ls -l
-rw-r----- 1 rob rob 9 Jan 28 10:07 foobar
rob@mc-web1:/data01/home/rob/test$ chown www-data foobar
chown: changing ownership of `foobar': Operation not permitted
What am I missing?