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
Dirk Dankhoff
ISPConfig 3
Commits
a3d243b2
Commit
a3d243b2
authored
Jan 02, 2012
by
tbrehm
Browse files
Fixed: FS#1945 - Authorized keys file not readable by shell user
parent
900397c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/shelluser_base_plugin.inc.php
View file @
a3d243b2
...
...
@@ -274,6 +274,7 @@ class shelluser_base_plugin {
}
// set proper file permissions
// exec("chown -R ".escapeshellcmd($this->data['new']['puser']).":".escapeshellcmd($this->data['new']['pgroup'])." ".$usrdir);
exec
(
"chown -R "
.
escapeshellcmd
(
$this
->
data
[
'new'
][
'puser'
])
.
":"
.
escapeshellcmd
(
$this
->
data
[
'new'
][
'pgroup'
])
.
" "
.
$sshdir
);
exec
(
"chmod 600 '
$sshkeys
'"
);
}
...
...
server/plugins-available/shelluser_jailkit_plugin.inc.php
View file @
a3d243b2
...
...
@@ -443,6 +443,7 @@ class shelluser_jailkit_plugin {
}
// set proper file permissions
// exec("chown -R ".escapeshellcmd($this->data['new']['puser']).":".escapeshellcmd($this->data['new']['pgroup'])." ".$usrdir);
exec
(
"chown -R "
.
escapeshellcmd
(
$this
->
data
[
'new'
][
'puser'
])
.
":"
.
escapeshellcmd
(
$this
->
data
[
'new'
][
'pgroup'
])
.
" "
.
$sshdir
);
exec
(
"chmod 600 '
$sshkeys
'"
);
}
...
...
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