How do I determine if CHOWN is restricted on my system

Whenever I try to chown a file, I get "Not Owner"

Running on Solaris 8
Who is Participating?
brettmjohnsonConnect With a Mentor Commented:
If you are not root, you can only change ownership of files you own.
[root (or superuser) can change ownership of files owned by others.]
If you are a sudoer, you can use sudo to run chown.

sudo chown me someone_elses_file ...

paynestreetAuthor Commented:
I can't even do it on my own files
brettmjohnson probably made a typo above.

I suspect he meant "you can only change *permission* of files you own"

Short answer is you need root privs to change ownership.
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

I made no typo.  You can only change owner of file you own [unless you are root].
Otherwise you could change ownership of someone else's file to yourself, then change permissions on the file you stole.

What circumstances/system can a non-root user change ownership on a file owned by themselves to someone else?

I certainly can't think of any circumstance where that can occur.
> I can't even do it on my own files
only root can (in Solaris 6 and later)

Are you implying that Solaris 2.5.1 and lower allows non-root users to change ownership of their files?  Certainly news to me.

Tintin, not sure when the change was, but in eraly versions (as well as in SunOS) chown by the owner was possible, at least if it was a local filesystem.
IMHO, this was a nice feature 'cause you could give away a file.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.