Replies: 2 comments 2 replies
|
Hi @Sky-W-ui, good catch, this is a legitimate source of confusion, so let me clarify. Short answer: with There are two valid permission models, and the docs unfortunately mixed them (I'm fixing that): 1. Simple model - everything owned by
2. Hardened model (recommended) - split owner TEAMPASS=/var/www/html/teampass
# Code: readable by the web server, NOT writable
sudo chown -R root:www-data ${TEAMPASS}/app ${TEAMPASS}/public
sudo find ${TEAMPASS}/app -type d -exec chmod 0755 {} \;
sudo find ${TEAMPASS}/app -type f -exec chmod 0644 {} \;
sudo find ${TEAMPASS}/public -type d -exec chmod 0755 {} \;
sudo find ${TEAMPASS}/public -type f -exec chmod 0644 {} \;
# Runtime dirs the web server must write to → group-writable, group = www-data
sudo chown -R root:www-data ${TEAMPASS}/storage \
${TEAMPASS}/public/assets/avatars \
${TEAMPASS}/app/includes/libraries/csrfp/log
sudo find ${TEAMPASS}/storage -type d -exec chmod 2770 {} \;
sudo chmod 2770 ${TEAMPASS}/public/assets/avatars ${TEAMPASS}/app/includes/libraries/csrfp/logHere the web server is only in the group for
Bottom line: the warning is informational / non-blocking. If you want it gone and want proper defense-in-depth (a compromised PHP process can't rewrite its own code), use the split-owner model above. Thanks for reporting this, the permissions doc and the wizard's suggested fix were misleading on exactly this point, and both will be corrected in an upcoming release. |
|
I have another question to permissions. And another thing you have in https://documentation.teampass.net/#/install/file-permissions under "verification checklist" a script to check the permissions of some key folders and files. It works fine by me except the last command. |


Uh oh!
There was an error while loading. Please reload this page.
I upgraded my test system from 3.1.7.6 to 3.2.x



After reading the documentation and upgrading according documentation I got some confusion regarding permission, owner and group for the folder "public"
According to documentation the folder has the owner (for me www-data) and group (also www-data).
And perms with chmod is 755
But it shouldnt be writable by webserver.

So now i am a bit confused. What is the right configuration for the folder?

With the configuration 755 an owner www-data the webserver can write in the folder?
Hopefully you guys can resolve this confusion for me.
Regards
Sky
All reactions