nextcloudpi icon indicating copy to clipboard operation
nextcloudpi copied to clipboard

Problems with the new ncp user

Open DKX47 opened this issue 9 years ago • 10 comments

Using NextCloudPi_11-12-17

After we changed the default user from pi to ncp there are some problems using ssh:

  1. ncp has no home directory: Could not chdir to home directory /home/ncp: No such file or directory

  2. ncp is not in the sudoers file: ncp is not in the sudoers file. This incident will be reported.

  3. 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 to SSH 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.

DKX47 avatar Nov 13 '17 23:11 DKX47

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

nachoparker avatar Nov 14 '17 07:11 nachoparker

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

DKX47 avatar Nov 14 '17 09:11 DKX47

did you try the latest image? this is only from the latest onwards

nachoparker avatar Nov 14 '17 09:11 nachoparker

I used NextCloudPi_11-12-17.torrent

DKX47 avatar Nov 14 '17 09:11 DKX47

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'?

nachoparker avatar Nov 14 '17 11:11 nachoparker

  Require env noauth

  Require user pi

DKX47 avatar Nov 14 '17 12:11 DKX47

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

nachoparker avatar Nov 14 '17 16:11 nachoparker

Thanks for fixing ;) So we will have a new image?

DKX47 avatar Nov 14 '17 16:11 DKX47

no, it was a problem with nc-update. The image is fine, it was the update that changed the user name

nachoparker avatar Nov 14 '17 16:11 nachoparker

Got it ;)

DKX47 avatar Nov 14 '17 17:11 DKX47