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.

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
add comment

1 Answer

up vote 2 down vote accepted

On Mac OS X 10.8.1 root belongs to staff:

$ sudo dscl . -read /groups/staff 
Password:
AppleMetaNodeLocation: /Local/Default
GeneratedUID: ABCDEFAB-CDEF-ABCD-EFAB-CDEF00000014
GroupMembers: FFFFEEEE-DDDD-CCCC-BBBB-AAAA00000000
GroupMembership: root
Password: *
PrimaryGroupID: 20
RealName: Staff
RecordName: staff BUILTIN\Users
RecordType: dsRecTypeStandard:Groups
SMBSID: S-1-5-32-545

or

$ grep staff /etc/group
staff:*:20:root

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
add comment

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.