Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Guilherme Filippo
ISPConfig 3
Commits
af1c095f
Commit
af1c095f
authored
Dec 14, 2008
by
tbrehm
Browse files
Changed min userid from 999 to 499 to better support redhat based distributions.
parent
cf8190ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/shelluser_base_plugin.inc.php
View file @
af1c095f
...
...
@@ -32,6 +32,7 @@ class shelluser_base_plugin {
var
$plugin_name
=
'shelluser_base_plugin'
;
var
$class_name
=
'shelluser_base_plugin'
;
var
$min_uid
=
499
;
//* This function is called during ispconfig installation to determine
// if a symlink shall be created for this plugin.
...
...
@@ -73,7 +74,7 @@ class shelluser_base_plugin {
// Get the UID of the parent user
$uid
=
intval
(
$app
->
system
->
getuid
(
$data
[
'new'
][
'puser'
]));
if
(
$uid
>
999
)
{
if
(
$uid
>
$this
->
min_uid
)
{
$command
=
'useradd'
;
$command
.
=
' --home '
.
escapeshellcmd
(
$data
[
'new'
][
'dir'
]);
$command
.
=
' --gid '
.
escapeshellcmd
(
$data
[
'new'
][
'pgroup'
]);
...
...
@@ -98,7 +99,7 @@ class shelluser_base_plugin {
// Get the UID of the parent user
$uid
=
intval
(
$app
->
system
->
getuid
(
$data
[
'new'
][
'puser'
]));
if
(
$uid
>
999
)
{
if
(
$uid
>
$this
->
min_uid
)
{
$command
=
'usermod'
;
$command
.
=
' --home '
.
escapeshellcmd
(
$data
[
'new'
][
'dir'
]);
$command
.
=
' --gid '
.
escapeshellcmd
(
$data
[
'new'
][
'pgroup'
]);
...
...
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