Skip to content
Snippets Groups Projects
Commit a68bd9a7 authored by Marius Burkard's avatar Marius Burkard
Browse files

- too many arguments for useradd in shell user plugin

parent 6e420949
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ class shelluser_base_plugin { ...@@ -128,7 +128,7 @@ class shelluser_base_plugin {
$app->system->chown($homedir,$data['new']['puser'],false); $app->system->chown($homedir,$data['new']['puser'],false);
$app->system->chgrp($homedir,$data['new']['pgroup'],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']); if($data['new']['password'] != '') $command .= ' -p ' . escapeshellarg($data['new']['password']);
$command .= ' -s ? -u ? ?'; $command .= ' -s ? -u ? ?';
$app->system->exec_safe($command, $homedir, $data['new']['pgroup'], $data['new']['shell'], $uid, $data['new']['username']); $app->system->exec_safe($command, $homedir, $data['new']['pgroup'], $data['new']['shell'], $uid, $data['new']['username']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment