diff --git a/src/etc/inc/plugins.inc.d/openssh.inc b/src/etc/inc/plugins.inc.d/openssh.inc index a21fa2319..2f00edcc3 100644 --- a/src/etc/inc/plugins.inc.d/openssh.inc +++ b/src/etc/inc/plugins.inc.d/openssh.inc @@ -157,7 +157,8 @@ function openssh_configure_do($verbose = false, $interface = '') $sshconf .= "UseDNS no\n"; $sshconf .= "X11Forwarding no\n"; $sshconf .= "PubkeyAuthentication yes\n"; - $sshconf .= "Subsystem\tsftp\tinternal-sftp\n"; + $sshconf .= "Subsystem sftp internal-sftp\n"; + $sshconf .= "AllowGroups wheel\n"; if (isset($sshcfg['permitrootlogin'])) { $sshconf .= "PermitRootLogin yes\n"; } else { diff --git a/src/www/system_usermanager.php b/src/www/system_usermanager.php index 32eb5d5bd..5824e41d4 100644 --- a/src/www/system_usermanager.php +++ b/src/www/system_usermanager.php @@ -361,8 +361,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $a_user[] = $userent; } - local_user_set($userent); local_user_set_groups($userent, $pconfig['groups']); + local_user_set($userent); write_config(); if (!empty($pconfig['chkNewCert'])) {