Commit a68bd9a7 authored by Marius Burkard's avatar Marius Burkard

- too many arguments for useradd in shell user plugin

parent 6e420949
Pipeline #1279 passed with stage
in 2 minutes and 40 seconds
......@@ -128,7 +128,7 @@ class shelluser_base_plugin {
$app->system->chown($homedir,$data['new']['puser'],false);
$app->system->chgrp($homedir,$data['new']['pgroup'],false);
}
$command = 'useradd -d ? -g ? -o ?'; // non unique
$command = 'useradd -d ? -g ? -o'; // non unique
if($data['new']['password'] != '') $command .= ' -p ' . escapeshellarg($data['new']['password']);
$command .= ' -s ? -u ? ?';
$app->system->exec_safe($command, $homedir, $data['new']['pgroup'], $data['new']['shell'], $uid, $data['new']['username']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment