사용자 도구

사이트 도구


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

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
os:osx:그룹과_멤버에_대한_것 [2021/04/28 10:13] kieunsos:osx:그룹과_멤버에_대한_것 [2024/04/23 22:44] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 +<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