Problems with the new ncp user
Using NextCloudPi_11-12-17
After we changed the default user from pi to ncp there are some problems using ssh:
-
ncp has no home directory:
Could not chdir to home directory /home/ncp: No such file or directory -
ncp is not in the sudoers file:
ncp is not in the sudoers file. This incident will be reported. -
The message
SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.should be changed toSSH is enabled and the default password for the 'ncp' user has not been changed. This is a security risk - please login as the 'ncp' user and type 'passwd' to set a new password.
Hi,
In Raspbian, the user pi still exists. The user ncp is only used (internally) to authenticate to ncp-web, and it is not intended to be used in a login shell.
So everyone should keep using the user pi, except for loging in to the web interface
Ah ok, but "except for loging in to the web interface"? I need to use pi/raspberry in the webinterface also, ncp/ownyourbits doesn't work
did you try the latest image? this is only from the latest onwards
I used NextCloudPi_11-12-17.torrent
mmm
that's weird. can you check in the file /etc/apache2/sites-available/ncp.conf wether it says 'Require user pi' or 'Require user ncp'?
Require env noauth
Require user pi
man! thanks for noticing!
There was an old fix in the updates that was reverting it back to pi. Fixed now.
Everyone that updated it are using pi, but people that start from a fresh image are (and will be) on ncp
Thanks for fixing ;) So we will have a new image?
no, it was a problem with nc-update. The image is fine, it was the update that changed the user name
Got it ;)