On some hosters it is possible to use a separate PHP-file to perform occ commands. It depends on the settings of the hoster though, whether that will work or not (it works with mine). It might be worth a try:
create a file on your webspace called occ-command.php (or whatever you wanna call it) with the following content (adjust RELATIVE/PATH/TO/occ to point to your occ in the nextcloud-installation folder; also the path to php possibly needs to be adjusted):
Thank you for keeping us up to date on this! I am glad I read until your final post - do you know an alternative?
I have SSH-access to the managed server (Hetzner) but no sudo-rights. This means I can run occ-commands but I can’t specify the user to www-data first. I suppose it would be unsafe to simply run
Hi! Thank you guys for your quick replies! I just wanted to make sure I won’t mess with the permissions as the warning in the manual says. Thank you for reassuring me
I found alternative options in the admin manual to set the user without sudo but haven’t successfully tried them yet (rtfm, sorry, I know…). It might help someone else, who knows.