Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.