##### Behavior
```
ity/~ doas id
uid=0(root) gid=0(root) groups=0(root)
ity/~ rt id
uid=0(root) gid=0(root) groups=0(root),1(wheel),72(vboxusers),100(users),131(docker)
```
##### References
- [`getgrouplist(3)`](https://linux.die.net/man/3/getgrouplist)
- [Proper way to get groups of a user in linux using C](https://stackoverflow.com/questions/22104383/proper-way-to-get-groups-of-a-user-in-linux-using-c)
- [Group memberships and setuid/setgid processes](https://unix.stackexchange.com/questions/118786/group-memberships-and-setuid-setgid-processes)
Behavior
References
getgrouplist(3)