dotfiles/notes/macos/macos_groups.md

22 lines
455 B
Markdown
Raw Permalink Normal View History

2023-12-23 20:13:52 -07: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