Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have a file that's owned by Me and is in group staff, I can chown Me:admin and chown Me:Me but in order to chown Me:staff I must sudo chown Me:staff to avoid an "Operation not permitted" error.

Why can't I change ownership to staff without sudo?


I'm running OS X (10.8.2) and in addition to Me, groups reports com.apple.access_screensharing everyone _appstore localaccounts admin _lpadmin _lpoperator _developer.

share|improve this question
up vote 1 down vote accepted

Because you can't "give away" files (i.e., change ownership or change group ownership to a group that you don't belong to).

share|improve this answer
    
So if I were a member of staff, I could. That makes sense. But it's odd that the default group for files on OS X one that I (the only user, and admin) am not a member of (by default, I think). – raxacoricofallapatorius Feb 6 '13 at 1:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .