Q4OS (PINE A64(+)) 2.4-r1 [Nov 10] | Volumio (ROCK64) 2.299 [Oct 30] | Q4OS (Pinebook) 2.4-r1 [Oct 30] | DietPi (ROCK64) v156 [Oct 24] | Armbian - Xenial Desktop (Pinebook) 5.34 [Oct 24] | motionEyeOS (PINE A64(+)) 20171003 [Oct 23] | Android Images (ROCK64) 20171012 [Oct 23] | Bliss OS (Pinebook) 20170919 [Oct 13] | Bliss OS (PINE A64(+)) 20170919 [Oct 13]

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
  PPTP doesnt work with ubuntu escovedo 2 1,128 08-23-2017, 09:28 AM
Last Post: gilbertotcc
  SPI on ubuntu IlyaM 0 114 08-07-2017, 03:41 AM
Last Post: IlyaM
  Ubuntu boot very slow with wifi driver remainder 9 1,469 08-03-2017, 07:23 AM
Last Post: victorssantos
  Recovering root access in Ubuntu Scientomancer 3 176 07-28-2017, 02:53 PM
Last Post: Scientomancer
  Ubuntu Xenial Image (BSP Kernel) longsleep 329 111,103 07-16-2017, 06:45 PM
Last Post: pfeerick
  Pine64 2Gb Ubuntu Mono not updating and stuck petec 0 136 07-08-2017, 09:34 AM
Last Post: petec
  Ubuntu Xenial - Firefox add support for H264 and EAC3 klode 1 834 05-26-2017, 11:10 AM
Last Post: Gnx
Brick Rootfs Encryption on Ubuntu 16.04 saro 7 687 05-17-2017, 06:49 PM
Last Post: pfeerick
  Updating Ubuntu 16.04 SteveBlack 9 2,943 05-05-2017, 01:33 PM
Last Post: ta2025
  Ubuntu 16.04 and Zoneminder ewtaylo 3 1,985 04-16-2017, 10:16 AM
Last Post: Dagremote

Forum Jump:


Users browsing this thread: 1 Guest(s)