Www-data: command not allowed when openeing NCP-webui

I updated my previous post.

And yes I assume too that ncp is not www-data, but what if ncp executes the sudo -u www-data would that raise that error too ?

I think that does not help us. But you can post the sudo configuration for user ncp. I think the command is possible (without password for ncpwww-data) with sudo permissions. Perhaps it is not possible at all.

the ncp user is not in the sudoers file nor in a group mentioned in my sudoers file. from my understanding ncp is not allowed to use sudo

sudo -u ncp sudo -u www-data php /var/www/nextcloud/occ status | grep "version:" | awk '{ print $3 }'

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for ncp:

I do not know the password :smiley:

Perhaps it is not necessary. I think the error we only find in (wrong) interaction between www-data and root.

good catch. I found where this happens, nothing is really broken but we were using the wrong invocation during the sidebar loading so we get this harmless warning. Fixed

1 Like

@nachoparker :+1:
@devnull thanks for your patience and help, wouldn’t have started to look deeper into this without you asking questions :slight_smile:

Seems it gets solved with