NanoPi NEO2 - Unable to logon as dietpi user Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
scheiner
Posts: 22
Joined: Mon Oct 29, 2018 1:50 pm

NanoPi NEO2 - Unable to logon as dietpi user

Post by scheiner »

Picked up a blank new SD card and formarted and then burned the IMG file.

I can logon as ROOT but unable to logon as DIETPI.
It closes the connection before going forward.

Code: Select all

ssh dietpi@192.168.2.126
dietpi@192.168.2.126's password: 
Connection to 192.168.2.126 closed.
User avatar
ravenclaw900
Posts: 12
Joined: Sat Jan 09, 2021 4:05 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by ravenclaw900 »

Hello,
Note that you do need to login as root to complete the first run setup. Could you try after you’ve done that?
scheiner
Posts: 22
Joined: Mon Oct 29, 2018 1:50 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by scheiner »

Yes I did that. The process was completed ... and i'm unable to logon as dietpi user. it simply closes the connection as showed.
scheiner
Posts: 22
Joined: Mon Oct 29, 2018 1:50 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by scheiner »

Ok... tried on another NEO2.

Same thing. It finish the install under root .. when I log out .. and try to log in under dietpi username ... is closes the connection.
User avatar
ravenclaw900
Posts: 12
Joined: Sat Jan 09, 2021 4:05 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by ravenclaw900 »

If you log in as root, what is the output for ls /home?
scheiner
Posts: 22
Joined: Mon Oct 29, 2018 1:50 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by scheiner »

Code: Select all

root@DietPi:/# ls /home/
qbittorrent
root@DietPi:/# 
User avatar
trendy
Posts: 292
Joined: Tue Feb 25, 2020 2:54 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by trendy »

If I remember correctly, there was a discussion here from @MichaIng and @Joulinar to drop the dietpi user and let us create the username we fancy. Not sure if this is the case here.
scheiner
Posts: 22
Joined: Mon Oct 29, 2018 1:50 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by scheiner »

There must be a problem with NanoPi NEO2 image file .. because my Raspberry Pi 4 works just fine.
User avatar
MichaIng
Site Admin
Posts: 2783
Joined: Sat Nov 18, 2017 6:21 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by MichaIng »

Bug in the PREP script. Many thanks for reporting: https://github.com/MichaIng/DietPi/issues/4231
I'll repack the images, luckily its nothing more to do than a mkdir -p /home/dietpi; cp -a /etc/skel/. /home/dietpi/; chown -R dietpi: /home/dietpi.
scheiner
Posts: 22
Joined: Mon Oct 29, 2018 1:50 pm

Re: NanoPi NEO2 - Unable to logon as dietpi user

Post by scheiner »


root@DietPi:~# cp -a /etc/skel/. /home/dietpi/; chmod dietpi: /home/dietpi
chmod: invalid mode: ‘dietpi:’
Try 'chmod --help' for more information.
Post Reply