Creates a default group for all users of a workspace. Creates the group, add all regular users to it, and ensures that new users are also added to it.
Debian/Ubuntu operating system.
- Adds the group with the desired name and gid.
- Modifies
/etc/security/group.confso that the group is added by PAM whenever a user logs in. - Takes all existing regular users and adds them to group.
- Adds the group to the
EXTRA_GROUPSinstruction in/etc/adduser.confso that new users created with/sbin/adduser(a Debian/Ubuntu tool, not to be confused withuseradd) are automatically added to the new group.
- also ensures that existing groups in
EXTRA_GROUPSare kept. On SRC workspaces, this includes thedavfs2group by default.
- dict
default_group_group:default_group_group.groupname: name of the group to create- `default_group_group.gid``: # optional. gid (numeric) of the group
2023 Written by Dawa Ometto (Utrecht University)