Skip to content

Commit fef4ee4

Browse files
authored
Merge pull request hestiacp#2758 from hestiacp/main
Merge main in staging.
2 parents 678fabb + 094a97f commit fef4ee4

File tree

44 files changed

+710
-574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+710
-574
lines changed

install/deb/filemanager/filegator/configuration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
# Create filemanager sftp key if missing and trash it after 30 min
2626
if (! file_exists('/home/'.basename($v_user).'/.ssh/hst-filemanager-key')) {
2727
exec("sudo /usr/local/hestia/bin/v-add-user-sftp-key " . escapeshellarg(basename($v_user)) . " 30", $output, $return_var);
28+
// filemanager also requires .ssh chmod o+x ... hopefully we can improve it to g+x or u+x someday
29+
// current minimum for filemanager: chmod 0701 .ssh
30+
shell_exec("sudo chmod o+x " . escapeshellarg('/home/' . basename($v_user) . '/.ssh'));
2831
}
2932

3033
if (!isset($_SESSION['SFTP_PORT'])) {
40 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-705 Bytes
Binary file not shown.
3 Bytes
Binary file not shown.
27 Bytes
Binary file not shown.
-504 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
228 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)