From 94fd035010bd75c9bff237954cb2bb70514088da Mon Sep 17 00:00:00 2001 From: Miraty Date: Wed, 20 Sep 2023 18:47:26 +0200 Subject: [PATCH] sftpgo-auth: allow chmod --- sftpgo-auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sftpgo-auth.php b/sftpgo-auth.php index b73dbbb..7516b8d 100644 --- a/sftpgo-auth.php +++ b/sftpgo-auth.php @@ -28,7 +28,7 @@ if (!in_array('ht', explode(',', $account['services']), true)) deny('Service not enabled for this user.'); const SFTPGO_DENY_PERMS = ['/' => ['list']]; -const SFTPGO_ALLOW_PERMS = ['list', 'download', 'upload', 'overwrite', 'delete_files', 'delete_dirs', 'rename_files', 'rename_dirs', 'create_dirs', 'chtimes']; +const SFTPGO_ALLOW_PERMS = ['list', 'download', 'upload', 'overwrite', 'delete_files', 'delete_dirs', 'rename_files', 'rename_dirs', 'create_dirs', 'chmod', 'chtimes']; if ($auth_data['password'] !== '') { if (checkPassword($account['id'], $auth_data['password']) !== true) deny('Wrong password.');