os:osx:그룹과_멤버에_대한_것
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
os:osx:그룹과_멤버에_대한_것 [2021/04/28 10:12] – kieuns | os:osx:그룹과_멤버에_대한_것 [2024/04/23 22:44] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
+ | < | ||
+ | 특정 그룹의 멤버 확인 | ||
+ | |||
+ | dscl . -read / | ||
+ | |||
+ | 그룹에 멤버 포함 | ||
+ | |||
+ | sudo dscl . append / | ||
+ | |||
+ | ~~(관련 내용)~~ | ||
+ | |||
+ | 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 / | ||
+ | |||
+ | I was trying to add my user to the wheel group, | ||
+ | to be able to manipulate the / | ||
+ | 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 / | ||
+ | |||
+ | ~~~~~~~~~~~~ | ||
+ | |||
+ | sudo dscl . append / |