NCP 1.50.5 update is released for Nextcloud 24.0.8

There is a technical difference between user root and using sudo.

for b) you’ve been using the user pi with sudo command.

Please read Create a new sudo-user & delete Pi user

From NCP 1.50.5 on you can also activate SSH for the the user NCP and enable sudo (with the new checkbox):