[Jan 06] Arch Linux (20171225-1) PINE A64(+) Pinebook A64-LTS/SOPINE | [Jan 04] Linux (0.5.15-136) ROCK64 | [Jan 04] Android (20171204) ROCK64 | [Dec 22] Stretch Mate (0.5.15-136-20171222) ROCK64 | [Dec 21] openHAB 2 (v1.4) PINE A64(+) | [Dec 11] Volumio (2.315) PINE A64(+) A64-LTS/SOPINE | [Dec 11] Armbian (5.35) PINE A64(+) Pinebook A64-LTS/SOPINE | [Dec 8] OpenMediaVault (0.5.15-136) ROCK64

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


HELP Ubuntu Mate password recovery procedure
#1
Question 
Greetings from a Pine64 Ubuntu Mate newbie! 

I have set up Ubuntu Mate on a Pine64 2GB a month ago to "not ask password at login". The problem now is I somehow have forgotten the password for root and I cannot do updates and upgrades, installation/removal/purge of packages.

Tried some web searches for recovering the root password (pressing "shift" or "Cntrl" at bootup to access GRUB) but those procedures presented were not applicable for Pine64 Ubuntu Mate (cannot access GRUB).

If there is a better recovery procedure, I (and probably a lot of others) will be more than happy follow it so that I can recover/reset the password.

As of now I can still access/use my Ubuntu Mate as a Linux desktop, but would like to start updating it to the latest available updates/upgrades.

Many thanks!
Reply
#2
(08-01-2017, 08:31 AM)Captain Anni Hilator Wrote: If there is a better recovery procedure, I (and probably a lot of others) will be more than happy follow it so that I can recover/reset the password.


Pop the SD out of the Pine board, and pop it into another gnu+linux machine;  use the second machine to edit the passwd file , sudoers file , etc;  make any changes appropriate and then put the SD card back into the Pine board; voilà !
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
Reply
#3
Thanks MarkHaysHarris777 for the FAST reply, will try it out later and give feedback.
Reply
#4
Hi there! I finally had access to the files (passwd, sudoers,) as stated above, however I'm stuck on what to do next, what to look for in the file (part to edit) and what to do next after that (before the "put the SD card back to the pine board, viola")

Tried deleting the encrypted entries in the shadow file, (backed it up first) but still not able to set/reset password for ubuntu and/or root after putting it back to the pine board.
Reply
#5
to add to that my account was disabled and I cannot enable it.

... revisited the shadow file and made "drastic" (as in not recommended) changes....

drank 2 cans of beers first

reboot....

and finally voilà !... was able to reset the password

Still my thanks to MarkHaysHarris777 and somebody called keepitsimpleengineer
Reply
#6
(08-03-2017, 07:21 AM)Captain Anni Hilator Wrote: to add to that my account was disabled and I cannot enable it.

... revisited the shadow file and made "drastic" (as in not recommended) changes....

drank 2 cans of beers first

reboot....

and finally voilà !... was able to reset the password

Still my thanks to MarkHaysHarris777 and somebody called keepitsimpleengineer

Beer = guaranteed success. The only question that remains ... what beer was it ?
  If you manage to click this link you'll join in the IRC channel
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  SPI on ubuntu IlyaM 2 317 02-12-2018, 04:33 AM
Last Post: IlyaM
  After flashing Ubuntu- how to get graphical desktop Partymack711 6 199 02-01-2018, 09:45 AM
Last Post: Partymack711
  [Archival thread]Ubuntu Xenial Image (BSP Kernel) longsleep 337 116,136 01-31-2018, 11:58 AM
Last Post: Luke
  PPTP doesnt work with ubuntu escovedo 2 1,278 08-23-2017, 09:28 AM
Last Post: gilbertotcc
  Ubuntu boot very slow with wifi driver remainder 9 1,569 08-03-2017, 07:23 AM
Last Post: victorssantos
  Recovering root access in Ubuntu Scientomancer 3 270 07-28-2017, 02:53 PM
Last Post: Scientomancer
  Pine64 2Gb Ubuntu Mono not updating and stuck petec 0 229 07-08-2017, 09:34 AM
Last Post: petec
  Ubuntu Xenial - Firefox add support for H264 and EAC3 klode 1 961 05-26-2017, 11:10 AM
Last Post: Gnx
Brick Rootfs Encryption on Ubuntu 16.04 saro 7 776 05-17-2017, 06:49 PM
Last Post: pfeerick
  Updating Ubuntu 16.04 SteveBlack 9 3,220 05-05-2017, 01:33 PM
Last Post: ta2025

Forum Jump:


Users browsing this thread: 1 Guest(s)