You are Here:
Download Linux Lite 5.2 today - See Release Announcements



[ SOLVED ] Forgotten Password

Author (Read 2766 times)

0 Members and 4 Guests are viewing this topic.

Forgotten Password
« on: November 12, 2018, 04:48:07 PM »
 

pingball57

  • Occasional Poster
  • **
  • 58
    Posts
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 3.4 32bit
Hi Guys,
Yup, just tried to install gscan2pdf from command line & ...er I've forgotten my system password. I've rummaged thoroughly in my password book & can't find it anywhere. How scr^*ed am I ? 
Last Edit: November 13, 2018, 06:46:51 AM by pingball57
 


Re: Forgotten Password
« Reply #1 on: November 12, 2018, 06:29:28 PM »
 

DeepThought

  • Forum Regular
  • ***
  • 237
    Posts
  • Country: wales
  • Reputation: 40
  • Linux Lite Member
    • WKDfm Radio | WKDfm Chat

  • Linux Lite: 5.0 64bit

  • CPU: AMD Turion(tm) 64 x 2 Mobile Technology TL-60

  • MEMORY: 4Gb

  • VIDEO CARD: ATI RS480

  • Kernel: 5.x
 Do you have a live cd/usb lying about. If so boot your system using it.

Then mount the root partition of your normal system and open /etc/passwd as root

Code: [Select]
sudo nano "root-partition"/etc/passwdreplace "root-partion" with the path to your mounted partition... DO NOT do sudo nano /etc/passwd as this will open the /etc/passwd of your live system.

you should see something like this :
Code: [Select]
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync

The x denotes an encrypted passwd, so scroll down to your username and delete JUST the x, leave the : (colons) and everything else in the line as is.
Then Control-X, Y, and enter to save.
Reboot into your normal system and you should be able to log in without a password.
Don't forget to set a new passwd for yourself

Code: [Select]
sudo passwd "your-username"
Finally, don't forget this password :)
Last Edit: November 12, 2018, 06:31:40 PM by DeepThought
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )
 

Re: Forgotten Password
« Reply #2 on: November 12, 2018, 06:35:27 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7859
    Posts
  • Country: nz
  • Reputation: 741
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.2 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Help Manual > Install > Resetting your Password.
 

Re: Forgotten Password
« Reply #3 on: November 12, 2018, 06:50:30 PM »
 

pingball57

  • Occasional Poster
  • **
  • 58
    Posts
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 3.4 32bit
thanks I'll try these tomorrow. It's bed time here.
 

Re: Forgotten Password
« Reply #4 on: November 13, 2018, 06:48:18 AM »
 

pingball57

  • Occasional Poster
  • **
  • 58
    Posts
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 3.4 32bit
Thank you both for your assistance. I now have a password.  :)  (oh yes and gscan2pdf )
Last Edit: November 13, 2018, 06:51:31 AM by pingball57
 


Tags:
 


Download Linux Lite 5.2 today - See Release Announcements