The current handling of user, uid, and gid are incomplete and subject to failure.
The adduser/addgroup commands on Debian based systems are much more pedantic than other platforms and will error out on some surprising conditions.
We want to support situations in which the username or groupname is pulled from systems which support characters such a spaces in the names which are prohibited in the POSIX passwd/group files.
We need to handle the condition in which the group the user belongs to does not already exist.
what
Pass the groupname via the GROUP env variable in the wrapper script
The current handling of user, uid, and gid are incomplete and subject to failure.
what
GROUP
env variable in the wrapper scriptwhy