从组MAC OS X删除用户(埃尔卡皮坦) [英] remove user from group Mac Os X (El Capitan)

查看:178
本文介绍了从组MAC OS X删除用户(埃尔卡皮坦)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自己从_developer和procmod在哪里我不小心用下面的命令添加它的组中删除:

I'm trying to remove myself from the groups _developer and procmod where I accidentally added it with the following commands:

sudo dseditgroup -o edit -a marinos -t user _developer
sudo dseditgroup -o edit -a marinos -t user procmod

当我 ID 我得到这样的:

uid=501(marinos) gid=20(staff) groups=20(staff),401(com.apple.sharepoint.group.1),9(procmod),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),204(_developer),502(access_bpf),33(_appstore),100(_lpoperator),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)

删除我试过

sudo dscl . -delete /Groups/_developer GroupMembership marinos

和我得到这个错误

<main> attribute status: eDSAttributeNotFound
<dscl_cmd> DS Error: -14134 (eDSAttributeNotFound)

和本
    须藤DSCL。 -delete /组/ procmod GroupMembership马里诺斯
这将导致错误,但不会从组中删除我 - ID 返回同样的团体前。

and this sudo dscl . -delete /Groups/procmod GroupMembership marinos which results in no error but does not remove me from the group - id returns the very same groups as before.

我也试过:

sudo dseditgroup -o edit -u marinos -d procomod user procmod

和我得到

Group not found.

和这样的:

sudo dseditgroup -o edit -u marinos -d procmod user procmod

这将导致没有任何错误,但没有任何效果.. ID 仍显示,我在所有这些团体的成员。

which results in no errors but has no effect either.. id still shows that I'm a member in all these groups..

请帮忙......我绝望

please help... I'm desperate

推荐答案

使用GUID,而不是用户名从组中删除用户的正确方法:

The correct way of removing a user from a group is using the GUID instead of the username:

dscl . -delete /Groups/<group> GroupMembers <GUID>

这篇关于从组MAC OS X删除用户(埃尔卡皮坦)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆