-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
taking away admin rights using cli command doesn't work #179
Comments
This is odd. I have just tested this again (in El Capitan) and it does work. Are you running this on Sierra? |
yes, running on |
and the command was successful, retrying gives me
so the attribute and is gone it would seem. |
I am planning to install Sierra when 12.2 drops. Then I can have a look. What is the output of this?
|
where admin is a second account I created to do system administration this does not seem to be in sync with the information I get from |
These commands have the same result?
|
nope
|
That’s weird, so
|
I've rebooted a few times in between, and flushed the cache now, still showing as a member of the group. |
curiously, according to /etc/group the admin group doesn't even contain the admin user, only root
|
and because of SIP I can't dtruss dsmemberutil, dscl and dscacheutil :( |
Turns out I'm still in the group because my UUID is still in the group
This command really removed me from the admin group:
Sudo no longer works, and I'm shown as a Standard user in the Users & Groups settings panel. So you might have to add this command to your guide. (found this out thanks to https://superuser.com/questions/279891/list-all-members-of-a-group-mac-os-x/395738#395738 ) |
I ran
sudo dscl . -delete /Groups/admin GroupMembership myaccount
rebooted
but when I open the shell I can still run
sudo su -
and when I look at the myaccount user it is still listed as Admin in the Users & groups config
and
id myaccount
shows up withuid=501(myaccount) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),701(com.apple.sharepoint.group.1),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)
The text was updated successfully, but these errors were encountered: