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
3fb9be68
Commit
3fb9be68
authored
Jun 03, 2015
by
Till Brehm
Browse files
Fix for FS#3857 .ssh key directory problem.
parent
5af0cfd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/shelluser_base_plugin.inc.php
View file @
3fb9be68
...
...
@@ -402,6 +402,12 @@ class shelluser_base_plugin {
}
$sshrsa
=
trim
(
$sshrsa
);
$usrdir
=
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]);
//* Home directory of the new shell user
if
(
$this
->
data
[
'new'
][
'chroot'
]
==
'jailkit'
)
{
$usrdir
=
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]);
}
else
{
$usrdir
=
escapeshellcmd
(
$this
->
data
[
'new'
][
'dir'
]
.
'/home/'
.
$data
[
'new'
][
'username'
]);
}
$sshdir
=
$usrdir
.
'/.ssh'
;
$sshkeys
=
$usrdir
.
'/.ssh/authorized_keys'
;
...
...
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