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

I accidentally removed the "staff" group from my Mac OS X 10.6.8 while trying to remove jenkins from it:

$ sudo dseditgroup -o delete -a jenkins -t user staff

I tried to repair this with

$ sudo dscl . create /Groups/staff GroupMembership `whoami`
$ sudo dscl . -append /groups/staff gid 20

Is this enough to repair the staff group? Or does this have any other consequences?

share|improve this question
up vote 2 down vote accepted

On Mac OS X 10.8.1 root belongs to staff:

$ sudo dscl . -read /groups/staff 
AppleMetaNodeLocation: /Local/Default
GroupMembership: root
Password: *
PrimaryGroupID: 20
RealName: Staff
RecordName: staff BUILTIN\Users
RecordType: dsRecTypeStandard:Groups
SMBSID: S-1-5-32-545


$ grep staff /etc/group

I guess in 10.6.8 it also was the case, so you may want to add root to staff.

If the group is recreated as it existed originally (same Group ID, same members) I tend to think (from my Linux experience) that there are no other consequences.

share|improve this answer

You must log in to answer this question.

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