What is the difference between the default groups on Mac OS X?

48

18

Two questions:

  1. What's the difference between the groups "wheel", "staff", and "admin"? What do they do?

  2. specific use case: I'm trying to setup a local CVS repository as stated in the Apple webpage so I can download a remote source tree... and I have to get myself permission to use a new directory /usr/local/cvsrep. It gets created by default as owned by "root" under group "wheel"... but I don't have membership in "wheel", I do have membership in "admin" and "staff" and am just wondering if I should chgrp the directory to admin or staff instead of wheel.

Jason S

Posted 2009-08-09T23:13:31.350

Reputation: 5 983

Are you just trying to download the source of some project that only you are going to hack on? You can just download it to a folder that you have permissions on already. – Richard Hoskins – 2009-08-09T23:31:55.020

Oh. you're correct... well, then the 2nd part of the Q is moot for my own purposes. But I'd still like to know about my first question. – Jason S – 2009-08-09T23:44:42.633

Answers

60

Regular OS X users are put into the staff group.

Admin users are put in the staff and admin groups. The admin group can do some things that other users cannot do. e.g. Write to the /Applications folder. If you want to put an OS X user into the admin group you should do this by designating him as an admin via System Preferences->Users & Groups.

root is the only member of the wheel group, and should remain the only member. If you have to do something that requires wheel, you should use the command sudo.

Richard Hoskins

Posted 2009-08-09T23:13:31.350

Reputation: 10 260

6"wheel" is a pretty bad name for that – Justin Zhang – 2018-01-24T23:26:27.350