Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Webslice
ISPConfig 3
Commits
a68bd9a7
Commit
a68bd9a7
authored
Jul 31, 2019
by
Marius Burkard
Browse files
- too many arguments for useradd in shell user plugin
parent
6e420949
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/shelluser_base_plugin.inc.php
View file @
a68bd9a7
...
...
@@ -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'
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment