diff --git a/public/auth/register.php b/public/auth/register.php index a538590..5983189 100644 --- a/public/auth/register.php +++ b/public/auth/register.php @@ -18,7 +18,7 @@ if (isset($_POST['username']) AND isset($_POST['password'])) { umask(0002); if (mkdir(CONF['ht']['ht_path'] . "/" . $_POST['username'], 0775) !== true) serverError("Can't create user directory."); - exec(CONF['ht']['sudo_path'] . " " . CONF['ht']['chgrp_path'] . " " . CONF['ht']['sftpgo_group'] . " " . CONF['ht']['ht_path'] . "/" . $_POST['username'], $stdout, $code); + exec(CONF['ht']['sudo_path'] . " " . CONF['ht']['chgrp_path'] . " " . CONF['ht']['sftpgo_group'] . " " . CONF['ht']['ht_path'] . "/" . $_POST['username'] . " --no-dereference", $stdout, $code); if ($code !== 0) serverError("Can't change user directory group.");