LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-21-2010, 11:00 AM   #1
tjd>6591
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
Recovery of root password


When accessing terminal; it keeps asking me for my root password....how do I find it? I don't remember it; all the passwords that I thought were the right ones did not work. When I typed password after root password, nothing showed as I typed. Any ideas?
 
Old 01-21-2010, 11:01 AM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
you would have set that in the initial install. As far as I know, there's no way to get it.
 
Old 01-21-2010, 12:24 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
What OS / version? Depending on your system and how it's configured, you may be able to reset root's password. But there is no way to "recover" it (short of brute forcing the hash).
 
Old 01-21-2010, 01:45 PM   #4
tjd>6591
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
O/S openSuSe 11.1 KDE4 i686.iso
 
Old 01-21-2010, 01:47 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
You can reset it using a live CD as well, just mount the HDD, login as root in the live CD, edit '/etc/shadow' and change the root entry by deleting the second field separated by colons. So from something like 'root:????:' to 'root::'.

The other ways are listed here:
http://linuxgazette.net/107/tomar.html

Last edited by H_TeXMeX_H; 01-21-2010 at 01:49 PM.
 
Old 01-21-2010, 02:14 PM   #6
uteck
Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: GalliumOS on Chrombook
Posts: 540

Rep: Reputation: 151Reputation: 151
You could boot into single user mode from Grub, that may dump you into a shell as root without asking for a password, but some OS's have even removed that ability and still require a password.

Have you tried sudo? If your account has sudo privilege, then try "sudo bash" and you could get root access that way then reset the password. Usually you will not see anything when you reset it using the passwd command.
 
Old 01-23-2010, 06:40 PM   #7
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2, Tumbleweed, Ubuntu 20.04, Fedora 30, antiX 19, and Linux Mint 19.1
Posts: 841
Blog Entries: 45

Rep: Reputation: 118Reputation: 118
Look at my reply to the more recent thread, "forgot root username n password"
 
Old 01-23-2010, 11:26 PM   #8
tjd>6591
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
root password recovery

Thanks for all of your help--I formatted HD and re-installed Linux Ubuntu 9.1
 
  


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
Root password recovery. skaynum Linux - Newbie 7 11-08-2008 12:43 AM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
Root password recovery Jabber Linux - Security 6 11-27-2005 04:23 PM
Password Recovery (not root) NewbGhostShells Linux - Newbie 3 12-17-2003 03:03 PM
root password recovery... roofy Linux - Software 7 05-06-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration