need to restore an erased unix group

OK. It's all my fault for poking around where I should not have been. I take the blame for this one. Just hope there's a not-too-difficult fix.

I was looking at Netinfo Manager in Macintosh OS X and saw the admin group. It seemed to have too many users in it. Used the deleted key thinking I was removing a user but ended up removing the group. Now none of the administrative passwords work and those users who were administrators are not any longer.

Is there a way to restore this group with either some Apple tool or through the use of the terminal mode?

Thanks to anyone who can help me with this.

Weed's comment helped solve some of the problem

I was able to log on as root and get to the "make user an administrator" check boxes in user preferences but when I logged out these check boxes were cleared. This also happened with any new users I created.

Thanks, Weed for getting me this far.

I was also unable to delete any of the new users since the system indicated that the new user's directory would be assigned to the administrator and the system does not see anyone in this capacity.

Looks like that group is rather important.
RHSAsked:
Who is Participating?
 
weedConnect With a Mentor Commented:
Answer as above.
0
 
weedCommented:
You cant restore it but you can recreate those users. Just enable root via NetInfo and use that as your admin password. Then start adding in users again.
0
 
weedCommented:
A "B"?...sometimes the answer you want to hear just doesnt exist.
0
All Courses

From novice to tech pro — start learning today.