serenity icon indicating copy to clipboard operation
serenity copied to clipboard

groupadd: Add `-U` option for adding members to a new group

Open tcl3 opened this issue 1 year ago • 1 comments

This PR adds the -U option, which allows the user to specify a comma-separated list of usernames; these are used as the initial members of the new group.

Example usage: groupadd_initial_members

tcl3 avatar Jun 19 '23 17:06 tcl3

My latest push replaces the HashTable I was using with an OrderedHashTable. This ensures that member entries in /etc/group appear in the same order that we specify on the command line. This matches the behavior of groupadd in Linux.

tcl3 avatar Jun 19 '23 18:06 tcl3