Computing.Net > Forums > Linux > Linux user and password recovery

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Linux user and password recovery

Reply to Message Icon

Name: javier_ccs
Date: March 17, 2006 at 06:33:52 Pacific
OS: Red Hat
CPU/Ram: n/a
Product: n/a
Comment:

Hello all,

i have a friend who forgot the user and password of his red hat partition (he also forgot the root password), hao can i recover the name of the user and the password?


Ciao, Javier
linux user #393724



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: March 17, 2006 at 06:46:01 Pacific
Reply:

The name of the user is stored
in /etc/passwd....but you wont be able to
view the file if you cannot logon at all.
You can either boot into single user mode by
typing something like "linux 1" at the boot
prompt and reset root's password or use a
live cd distro like knoppix, mount the root
partition and edit /etc/passwd and take out
the X in root's entry. Reboot and you can
log on as root without a passsword....don't
forget to set one straight away though!

Search these forums for "root password" as
the solution has been posted in depth many
times before.


0

Response Number 2
Name: Sandy (by sandeepankumar)
Date: March 19, 2006 at 23:28:00 Pacific
Reply:

Hi,

If your boot loader is GRUB then ... on the very first screen where you select for either Windows or Linux OS for booting (in case of dual boot), select the Linux option by up/down keys...then press E, now you will find a line with a curser blinking in the last ... give a single space and write single ....then press B.
It will start in a single user mode and will stop at:
$
You should type here ...
$ passwd root
It will ask you to enter the new root password ... do so and play again with Linux.

Note: But it will work only if you have not set the password for boot loader (or you know that password ).


Sandy!


0

Response Number 3
Name: fitzov
Date: March 22, 2006 at 16:46:33 Pacific
Reply:

If the boot loader is password-protected you can use the Knoppix CD with these steps

1.Boot Knoppix
2.mount the Linux system with 'mount -o rw /dev/<linuxpartition> /mnt/<linuxpartition>'

3.'chroot /mnt/<linuxpartition> passwd'

good luck


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Linux user and password recovery

Samba users and passwords www.computing.net/answers/linux/samba-users-and-passwords/10850.html

Damn Small Linux user name,password www.computing.net/answers/linux/damn-small-linux-user-namepassword/30171.html

Disabling User Name and Password at boot www.computing.net/answers/linux/disabling-user-name-and-password-at-boot/8100.html