[Aug 6] Debian Stretch Minimal 64bit (0.7.8) / Ubuntu 18.04 Bionic LXDE Desktop Image (0.7.8) / Ubuntu 18.04 Bionic minimal 64bit / 32bit Image (0.7.8) / Ubuntu 18.04 Bionic Containers Image (0.7.8) / Stretch OpenMediaVault OS Image armhf / Stretch OpenMediaVault OS Image arm64 ( 0.7.8) - ROCK64 | [June 25] Stock Android 8.1 - ROCK64 | [June 19] Armbian (5.42) - ROCK64 | [June 19] Armbian (5.38) - PINE A64(+) / PINE A64-LTS / SOPINE

Project Inspiration | Get Started | 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 4 767 07-16-2018, 03:00 AM
Last Post: kingflab
  Ubuntu password not working joemassimino 4 368 05-18-2018, 03:33 PM
Last Post: Luke
  After flashing Ubuntu- how to get graphical desktop Partymack711 6 747 02-01-2018, 09:45 AM
Last Post: Partymack711
  (ARCHIVED) Ubuntu Xenial Image (BSP Kernel) longsleep 337 129,565 01-31-2018, 11:58 AM
Last Post: Luke
  PPTP doesnt work with ubuntu escovedo 2 1,618 08-23-2017, 09:28 AM
Last Post: gilbertotcc
  Ubuntu boot very slow with wifi driver remainder 9 1,771 08-03-2017, 07:23 AM
Last Post: victorssantos
  Recovering root access in Ubuntu Scientomancer 3 444 07-28-2017, 02:53 PM
Last Post: Scientomancer
  Pine64 2Gb Ubuntu Mono not updating and stuck petec 0 376 07-08-2017, 09:34 AM
Last Post: petec
  Ubuntu Xenial - Firefox add support for H264 and EAC3 klode 1 1,182 05-26-2017, 11:10 AM
Last Post: Gnx
Brick Rootfs Encryption on Ubuntu 16.04 saro 7 1,067 05-17-2017, 06:49 PM
Last Post: pfeerick

Forum Jump:


Users browsing this thread: 1 Guest(s)