So on the setup mentioned in the title, I want to confirm how the user should be for command line. Using the default setup there is a user "nginx" that is used for php-fpm and for nginx.
Should that user "nginx" be used for composer install and updates, as well as php bin/magento commands? So I would log into SSH as that user?
I tried making all the files/folders owned by nginx:nginx and creating another user and putting them in the same group as "nginx", logging in as that new user and then running the php bin/magento commands like clear cache but it gives errors like cache is not writable (even though it is for nginx user).
I have already reviewed the docs https://devdocs.magento.com/guides/v2.3/install-gde/prereq/file-sys-perms-over.html but this is still not clear to me