From a46e42a79b334407ef038d284f29bb95df30c27e Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 25 Sep 2024 00:04:29 +0000 Subject: [PATCH] sftpgo: grant access to v. --- hosts/by-name/servo/services/export/sftpgo/external_auth_hook | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/by-name/servo/services/export/sftpgo/external_auth_hook b/hosts/by-name/servo/services/export/sftpgo/external_auth_hook index 523fa5414..f2ab048b7 100755 --- a/hosts/by-name/servo/services/export/sftpgo/external_auth_hook +++ b/hosts/by-name/servo/services/export/sftpgo/external_auth_hook @@ -69,7 +69,8 @@ TRUSTED_CREDS = [ # /etc/shadow style creds. # mkpasswd -m sha-512 # $$$ - "$6$Zq3c2u4ghUH4S6EP$pOuRt13sEKfX31OqPbbd1LuhS21C9MICMc94iRdTAgdAcJ9h95gQH/6Jf6Ie4Obb0oxQtojRJ1Pd/9QHOlFMW." #< m. rocket boy + "$6$Zq3c2u4ghUH4S6EP$pOuRt13sEKfX31OqPbbd1LuhS21C9MICMc94iRdTAgdAcJ9h95gQH/6Jf6Ie4Obb0oxQtojRJ1Pd/9QHOlFMW.", #< m. rocket boy + "$6$B0NLGNdCL51PNse1$46G.aA1ATWIv5v.jUsKf4F3NS7emV2jB2gkZ3MytZtMvw2pjniHmRl0fywRjKW9TuXTeK9T50v.H0f2BaQ4PT1", #< v. telephony ] TRUSTED_VIEWING_OR_PLAYGROUND_CREDS = [ "$6$iikDajz5b.YH1.on$tfSzzBEtX8IeDiJJXCasOTxRTd7cFDKXU6dhlWYVhK6xDeJhV2fh6bmm1WIHItjIth9Eh9zNgUB8xibMIWCm/." @@ -133,6 +134,7 @@ def getAuthResponse(ip: str, username: str, password: str) -> dict: "/": PERM_RW, "/playground": PERM_RW, "/.public_for_test": PERM_RO, + "/media/Music": PERM_RO, #< i am too picky about Music organization }) if isTrustedCred(password, TRUSTED_VIEWING_OR_PLAYGROUND_CREDS) and username != "colin": return mkAuthOk(username, permissions = {