dotfiles/notes/macos/macos_groups.md

22 lines
455 B
Markdown
Raw Normal View History

2022-09-07 22:24:18 -06:00
# Groups in macos
```bash
sudo dscl . -create /groups/newgroupname
sudo dscl . -append /groups/newgroupname gid 4200
```
Creates a new group. Alternatively use System Preferences -> Users and Groups
```bash
id -Gn emiliko
```
List all the groups `emiliko` belongs to
```bash
sudo chmod -R g=u .
```
Set the group privileges of the file hierarchy rooted at `.` to be the same as
the user. Very nice to convert a directory to be editable by ssh users