make jupyter-admin group primary for user

This commit is contained in:
oxapentane - 2023-06-12 23:59:05 +02:00
parent 7fdd9f673e
commit 579d6eef47
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
1 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ pkgs.dockerTools.buildImage {
echo "creating user ${user}"
useradd \
-m \
${if is-admin then "-G ${jupyterAdminGroup}" else ""} \
${if is-admin then "-g ${jupyterAdminGroup}" else ""} \
-G wheel \
-p $(cat /pw/hashed-password-${user}) \
${user} \
&& chown -R ${user}:${jupyterAdminGroup} /home/${user} \
@ -57,7 +58,7 @@ pkgs.dockerTools.buildImage {
# create jupyter group
groupadd ${jupyterAdminGroup}
chown root:${jupyterAdminGroup} /workdir
chown -R root:${jupyterAdminGroup} /workdir
chmod -R g+rwx /workdir
# create all the users