Removing admin privileges in Single-User mode

diablo2121

Registered
I ran $ nicl -raw /var/db/netinfo/local.nidb -merge /groups/admin users your-username-here in SUM to grant my account admin privileges temporarily. Now that I don't need them, I need a way to take my account out of the admin group and back into the nogroup group. Can someone help me with what command to run in Single-User Mode? Thanks.
 
Can you do it with netinfo manager? Take your user out of the admin group, and take the admin group out of the listed groups for your user...

If that doesn't do it, maybe check /etc/sudoers.
 
Well, I was thinking using the NetInfo Manager GUI - go into /users/yourname and change the gid (should be the same as uid usually), then go into /users/admin, and remove your username from the list of members.
 
Back
Top