serenity
serenity copied to clipboard
groupadd: Add `-U` option for adding members to a new group
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:
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.