VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Forgotten password  (Read 1273 times)

TrekOn

  • Member
  • *
  • Posts: 1
Forgotten password
« on: August 28, 2009, 11:33:31 pm »

How do I log in if I've forgotten my password (for both my username and the root) ?
Logged

newt

  • Vectorian
  • ****
  • Posts: 1132
Re: Forgotten password
« Reply #1 on: August 29, 2009, 10: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
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4086
Re: Forgotten password
« Reply #2 on: August 29, 2009, 11: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.
Logged

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3217
Re: Forgotten password
« Reply #3 on: August 29, 2009, 04: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