사용자 도구

사이트 도구


os:osx:그룹과_멤버에_대한_것

<title>osx 그룹과 멤버에 대한 것</title>

특정 그룹의 멤버 확인

dscl . -read /Groups/<mygroup> GroupMembership

그룹에 멤버 포함

sudo dscl . append /Groups/<그룹> GroupMembership <유저>

~~(관련 내용)~~

For those who are looking for the same answer to newer versions of Mac OS, I've found this: To add a user to a group, you need this command ($USER is the current logged-in user) :

$ sudo dscl . append /Groups/wheel GroupMembership $USER

I was trying to add my user to the wheel group, to be able to manipulate the /Library/WebServer/Documents folder. Besides that, I had to change the permissions to that folder, as by default it is 755. I've changed it to 775 with:

$ sudo chmod -R 775 /Library/WebServer/Documents

~~~~~~~~~~~~

sudo dscl . append /Groups/staff GroupMembership wheel
os/osx/그룹과_멤버에_대한_것.txt · 마지막으로 수정됨: 2024/04/23 22:44 저자 127.0.0.1