Skip to content

Commit d365f15

Browse files
author
Marius Burkard
committed
Merge branch '6240-shell-home-symlinks' into 'develop'
Create symlinks for conveniance, SFTP user should not land in an empty dir. Closes #6240 See merge request ispconfig/ispconfig3!1529
2 parents 05411b6 + 0897e41 commit d365f15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ function insert($event_name, $data) {
168168
$app->system->chown($homedir.'/.profile', $data['new']['username']);
169169
$app->system->chgrp($homedir.'/.profile', $data['new']['pgroup']);
170170

171+
// Create symlinks for conveniance, SFTP user should not land in an empty dir.
172+
symlink('../../web', $homedir.'/web');
173+
symlink('../../log', $homedir.'/log');
174+
symlink('../../private', $homedir.'/private');
175+
171176
//* Disable shell user temporarily if we use jailkit
172177
if($data['new']['chroot'] == 'jailkit') {
173178
$command = 'usermod -s /bin/false -L ? 2>/dev/null';

0 commit comments

Comments
 (0)