Compare commits

..

1 commit

Author SHA1 Message Date
Brice Waegeneire 99741826f6 Fix ssh group membership.
We now use split SSH configuration files, so the user was never a member
of the ssh group on newly installed systems. This change don't modify
the SSH configuration of new systems since evolinux-ssh members' are
already allowed to connect by SSH.
2024-04-03 16:28:57 +02:00

View file

@ -367,7 +367,7 @@ create_www_account() {
sed -i "s/^AllowUsers .*/& $in_login/" /etc/ssh/sshd_config
else
if getent group "$SSH_GROUP" 1>/dev/null 2>&1; then
usermod --append -groups "$SSH_GROUP" "$in_login"
usermod --append --groups "$SSH_GROUP" "$in_login"
fi
fi
/etc/init.d/ssh reload