Skip to content

Commit a68bd9a

Browse files
author
Marius Burkard
committed
- too many arguments for useradd in shell user plugin
1 parent 6e42094 commit a68bd9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function insert($event_name, $data) {
128128
$app->system->chown($homedir,$data['new']['puser'],false);
129129
$app->system->chgrp($homedir,$data['new']['pgroup'],false);
130130
}
131-
$command = 'useradd -d ? -g ? -o ?'; // non unique
131+
$command = 'useradd -d ? -g ? -o'; // non unique
132132
if($data['new']['password'] != '') $command .= ' -p ' . escapeshellarg($data['new']['password']);
133133
$command .= ' -s ? -u ? ?';
134134
$app->system->exec_safe($command, $homedir, $data['new']['pgroup'], $data['new']['shell'], $uid, $data['new']['username']);

0 commit comments

Comments
 (0)