Please support VectorLinux!

Author Topic: Forgotten password  (Read 1253 times)

TrekOn

  • Member
  • *
  • Posts: 1
Forgotten password
« on: August 28, 2009, 10:33:31 pm »
How do I log in if I've forgotten my password (for both my username and the root) ?

newt

  • Vectorian
  • ****
  • Posts: 1132
Re: Forgotten password
« Reply #1 on: August 29, 2009, 09:04:24 am »
Quite honestly, I don't think you can log in if you've forgotten all your passwords.  I would spend some time writing down all the possibilities of your passwords and then run through them one-by-one at the login.  However, if you're talking about the LIVE cd then the password is 'vector'.

Good luck

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4072
Re: Forgotten password
« Reply #2 on: August 29, 2009, 10:33:19 am »
I did this once, on an Ubuntu box, and it worked:

Boot from a Live CD
Edit the file on the hard disk: etc/shadow
- for the first line (root), delete everything between the two first colons
Save the file
Reboot without the CD
Log in as root, blank password
Assign new passwords to all users

Of course, this is a risky procedure. No guarantees.

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3208
Re: Forgotten password
« Reply #3 on: August 29, 2009, 03:19:50 pm »
Get a live cd and boot it.
Mount the linux inxtallation's root to /mnt/hd
Open a terminal and execute
Code: [Select]
chroot /mnt/hd
Once you've done that, its simply a matter of calling passwd for each user account