LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-28-2013, 09:47 PM   #1
xiaotengyi
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Rep: Reputation: Disabled
I forget my password.what can i do?


I forget my password to startup
 
Old 02-28-2013, 10:00 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,280

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Can you clarify; do you mean

1. BIOS passwd

2. GRUB passwd

3. root passwd

4. personal acct passwd
 
Old 02-28-2013, 10:28 PM   #3
xiaotengyi
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I mean the root passwd,I forget it
 
Old 02-28-2013, 10:46 PM   #4
bokswager
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
can you provide the operating linux system you're using.
 
Old 02-28-2013, 10:46 PM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by xiaotengyi View Post
I mean the root passwd,I forget it
If you cannot login into the machine, even with your own personal account, then boot your system with CD and reset password by modifying /etc/passwd or /etc/shadow.

Else if you've 'sudo' access with your account, and can login into the machine, then you can reset root passwd by becoming root:
Code:
~$ sudo su - root
~$ passwd root
OR
~$ sudo passwd root
But mentioned your distro i.e. OS.
 
Old 02-28-2013, 11:04 PM   #6
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 158

Rep: Reputation: 23
You could boot from a live-cd, then mount the root partition and chroot into it. Then you can use the "passwd" command to set a new one. Like:

mount /dev/sdXN /mnt/somedir
chroot /mnt/somedir
passwd
exit
umount /mnt/somedir
reboot
 
Old 02-28-2013, 11:19 PM   #7
xiaotengyi
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks all.I am using the centos5.4. I have entered the single mode,and change the password.
Thanks all again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i forget my root password. how to login in root account with new password in red hat. balajiraja Linux - Desktop 3 08-22-2012 01:41 AM
What should I do if I forget the su`s password??? songxuanss Linux - Security 3 09-25-2007 12:31 AM
forget password king123 Linux - Newbie 4 12-23-2006 10:39 AM
forget password acrors Fedora 1 10-09-2004 12:38 PM
I forget my password barDo LQ Suggestions & Feedback 1 10-26-2001 05:05 PM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration