I accidentally removed the "staff" group from a set of folder permissions and I have no idea how to get it back.
Is there a way to get it back, and if so how?
Not quite sure what you mean here. You lost the staff
group declaration in /etc/group
?
mress:10003 Z$ dscl . cat /Groups/staff
AppleMetaNodeLocation: /Local/Default
GeneratedUID: ABCDEFAB-CDEF-ABCD-EFAB-CDEF00000014
GroupMembers: FFFFEEEE-DDDD-CCCC-BBBB-AAAA00000000
GroupMembership: root
Password: *
PrimaryGroupID: 20
RealName: Staff
RecordName: staff
RecordType: dsRecTypeStandard:Groups
SMBSID: S-1-5-32-545
mress:10004 Z$ grep '^staff' /etc/group
staff:*:20:root
The file definition is only used before Directory Services is started during boot — and I suspect not even then.
If you mean the folders are no longer in group staff
, use chown staff
to fix them. Alternately, use /Applications/Utility/Disk Utility.app
, select your boot drive from the sidebar, and click "Repair Disk Permissions".
pkg
or mpkg
)? If so, there's a permissions record for it. If not... I'd wonder why it's using group staff
to start with. At worst, though, you can use Terminal: sudo chgrp staff folder
.
Commented
Mar 19, 2011 at 3:53