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 ?
You can find me on IRC, Discord and Twitter


  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Ubuntu server 20.04 request phi0x 2 6,165 12-30-2020, 08:02 PM
Last Post: phi0x
  +LTS/SOPINE Compilation procedure for U-Boot and Linux for pineA64 LTS. danpurprakash@gmail.com 1 4,571 06-05-2019, 11:50 PM
Last Post: igorp
  SPI on ubuntu IlyaM 4 10,210 07-16-2018, 03:00 AM
Last Post: kingflab
  Ubuntu password not working joemassimino 4 9,632 05-18-2018, 03:33 PM
Last Post: Luke
  After flashing Ubuntu- how to get graphical desktop Partymack711 6 12,070 02-01-2018, 09:45 AM
Last Post: Partymack711
  (ARCHIVED) Ubuntu Xenial Image (BSP Kernel) longsleep 337 705,990 01-31-2018, 11:58 AM
Last Post: Luke
  PPTP doesnt work with ubuntu escovedo 2 9,737 08-23-2017, 09:28 AM
Last Post: gilbertotcc
  Ubuntu boot very slow with wifi driver remainder 9 22,305 08-03-2017, 07:23 AM
Last Post: victorssantos
  Recovering root access in Ubuntu Scientomancer 3 6,690 07-28-2017, 02:53 PM
Last Post: Scientomancer
  Pine64 2Gb Ubuntu Mono not updating and stuck petec 0 3,163 07-08-2017, 09:34 AM
Last Post: petec

Forum Jump:


Users browsing this thread: 1 Guest(s)