Can't login after a system upgrade using pacman -Syu on Arch

Ask questions about Arch Linux ARM. Please search before making a new topic.

Can't login after a system upgrade using pacman -Syu on Arch

Postby codelast » Sun Aug 16, 2015 3:43 am

Hi everybody, I installed Arch Linux ARM on my Raspberry Pi model B+ and after a system upgrade yesterday using pacman -Syu, I can't login to Pi using ssh anymore. I always use root user to login and after the system upgrade, the terminal prompt "Permission denied, please try again", which I think means that my password was incorrect, but I'm so sure that my provided password is correct because I do not remember it in my head but copy it out from a file. So I was so confused and I tried following methods and they all didn't work:
(1) plug the Raspberry Pi TF card to another Ubuntu PC, edit the /etc/shadow file on the TF card, delete the password field of the root user, to make it became:
$this->bbcode_second_pass_code('', 'root::16660::::::')

and then plug the TF card back to Pi, boot Pi, theoretically, the terminal should not ask for password, but it still ask me to provide password, so you know the following story - failed to login.
(2) edit the /etc/shadow file on the TF card, edit the password field of the root user to a sha-512(Arch Linux ARM default) encrypted password "root"(the initial password of Arch Linux ARM root user), and plug the TF card back to Pi, boot Pi, when asking for password, the "root" password was still consider not right("Permission denied, please try again").

So I'm totally don't know what's wrong with my previous solution & how to recover my root user password, to let me login to Pi?

Any help is appreciated, thank you!
codelast
 
Posts: 3
Joined: Sun Aug 16, 2015 3:36 am

Re: Can't login after a system upgrade using pacman -Syu on

Postby moonman » Sun Aug 16, 2015 5:20 am

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Can't login after a system upgrade using pacman -Syu on

Postby codelast » Sun Aug 16, 2015 6:21 am

Thanks moonman, problem solved.
It's exactly the openssh reason what you mentioned.
I edited the /etc/ssh/sshd_config file and uncomment the following line:
$this->bbcode_second_pass_code('', '#PermitRootLogin yes')
and then I can login with root.
Thanks again.
codelast
 
Posts: 3
Joined: Sun Aug 16, 2015 3:36 am

Re: Can't login after a system upgrade using pacman -Syu on

Postby vduarte » Wed Sep 23, 2015 4:34 pm

I had this exact problem and this fixed it perfectly.
vduarte
 
Posts: 1
Joined: Wed Sep 23, 2015 4:28 pm

Re: Can't login after a system upgrade using pacman -Syu on

Postby draecko » Mon Oct 26, 2015 10:41 pm

Hi,
Sorry for being super new to arch linux, but I've run into the same problem here, however, I'm running alarm headless. Is there any workaround to fix this without physical access to the machine?
draecko
 
Posts: 1
Joined: Mon Oct 26, 2015 10:37 pm

Re: Can't login after a system upgrade using pacman -Syu on

Postby moonman » Tue Oct 27, 2015 5:33 am

You can't fix it remotely.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 0 guests