Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
65584a9f
Commit
65584a9f
authored
Feb 15, 2014
by
Till Brehm
Browse files
Fixed: FS#3009 - Jailkit problems either related to wheezy update or jailkit 2.1.16
parent
6bfc78a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/shell_user_edit.php
View file @
65584a9f
...
...
@@ -169,7 +169,6 @@ class page_action extends tform_actions {
$sql
=
"UPDATE shell_user SET server_id =
$server_id
, dir = '
$dir
', puser = '
$uid
', pgroup = '
$gid
', sys_groupid = '
$sys_groupid
' WHERE shell_user_id = "
.
$this
->
id
;
$app
->
db
->
query
(
$sql
);
die
(
$sql
);
}
...
...
server/scripts/create_jailkit_user.sh
View file @
65584a9f
...
...
@@ -21,12 +21,12 @@ CHROOT_SHELL=$4
CHROOT_P_USER
=
$5
CHROOT_P_USER_HOMEDIR
=
$6
### Add the chroot user ###
jk_jailuser
-n
-s
$CHROOT_SHELL
-j
$CHROOT_HOMEDIR
$CHROOT_USERNAME
### Reconfigure the chroot home directory for the user ###
usermod
--home
=
$CHROOT_HOMEDIR
/.
$CHROOT_USERHOMEDIR
$CHROOT_USERNAME
2>/dev/null
### Add the chroot user ###
jk_jailuser
-n
-s
$CHROOT_SHELL
-j
$CHROOT_HOMEDIR
$CHROOT_USERNAME
### We have to reconfigure the chroot home directory for the parent user ###
if
[
"
$CHROOT_P_USER
"
!=
""
]
;
then
usermod
--home
=
$CHROOT_HOMEDIR
/.
$CHROOT_P_USER_HOMEDIR
$CHROOT_P_USER
2>/dev/null
...
...
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