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
Dirk Dankhoff
ISPConfig 3
Commits
c4006ee5
Commit
c4006ee5
authored
Nov 15, 2011
by
tbrehm
Browse files
Fixed 2 warnings in shelluser_jailkit_plugin.inc.php
parent
450b3c9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/shelluser_jailkit_plugin.inc.php
View file @
c4006ee5
...
...
@@ -266,14 +266,14 @@ class shelluser_jailkit_plugin {
exec
(
$command
);
$this
->
app
->
log
(
"Added jailkit user to chroot with command: "
.
$command
,
LOGLEVEL_DEBUG
);
mkdir
(
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_userhome
),
0755
,
true
);
if
(
!
is_dir
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_userhome
))
mkdir
(
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_userhome
),
0755
,
true
);
chown
(
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_userhome
),
$this
->
data
[
'new'
][
'username'
]);
chgrp
(
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_userhome
),
$this
->
data
[
'new'
][
'pgroup'
]);
$this
->
app
->
log
(
"Added created jailkit user home in : "
.
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_userhome
,
LOGLEVEL_DEBUG
);
mkdir
(
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_puserhome
),
0755
,
true
);
if
(
!
is_dir
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_puserhome
))
mkdir
(
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_puserhome
),
0755
,
true
);
chown
(
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_puserhome
),
$this
->
data
[
'new'
][
'puser'
]);
chgrp
(
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
$jailkit_chroot_puserhome
),
$this
->
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