LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , , ,

Reply
 
Thread Tools
Old 10-18-2007, 10:28 AM   #1
dprichard
LQ Newbie
 
Registered: Oct 2007
Posts: 2
Thanked: 0
Lost root and don't know user password Suse 8.2


[Log in to get rid of this advertisement]
Okay, been fighting this one for 2 days so i figured I would go to the experts. I have a Suse 8.2 machine that we were using for a listserver for a few years now. We need to pull some data off of the machine, but no one knows the root password and we don't know any user passwords either.

I have tried going in and editing the shadow and passwd file, but it is almost like the revert back when I reboot. I have also tried rescue mode as root and then doing passwd root. It acts like it is letting me change the password, but when I try to use the one I set it doesn't work.

Any help on this one would be greatly appreciated.

Thank you thank you thank you!!
dprichard is offline  
Tag This Post , , , ,
Reply With Quote
Old 10-18-2007, 11:03 AM   #2
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Kubuntu Gutsy, Arch, Fedora. Soon to be Mandriva 2008.1 the kde Beta's are killer
Posts: 301
Thanked: 0
A possibility is to get a livecd and log into root mode. Use mkdir to make a root dir called /listserver . Then edit the fstab to have /listerver /mnt/your_actual_listerver_root_partition.

Then effectively chroot into the root partition from the root cd and change password, this is what I did when I locked myself out of arch
Code:
[root@localhost flebber]# chroot /archroot su
[root@localhost flebber]# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost flebber]#
Gentoo docs are a good reference to this as well and I would recommend you read it before going ahead, my info is basically right but as its early morning and I am tired you should do some backup reading.

Hope it helps.
flebber is offline  
Tag This Post
Reply With Quote
Old 10-18-2007, 11:15 AM   #3
dprichard
LQ Newbie
 
Registered: Oct 2007
Posts: 2
Thanked: 0

Original Poster
Sorry, haven't played with linux in a long time so I am a little lost. When you say boot off a live CD are you talking about going into rescue mode?

Also, I have tried logging into single user mode, but it shows a run level S but still prompts me for a password.

"Give root password to login:"
dprichard is offline     Reply With Quote
Old 10-18-2007, 02:16 PM   #4
bigrigdriver
Senior Member
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: openSUSE 10.3 Debian 4.0
Posts: 4,654
Thanked: 13
A liveCD is a Linux distro on cd which is bootable, and you run the distro from the cd, and not from a hard disk installation (you also have the option of installing to hard drive, but that's not required in this case). Running from cd is slower because all files are compressed and have to uncompress before your choice of application loads.

With the liveCD there are no passwords. To do something as root, your either type su and press enter to become root without password, or, in some liveCDs, you type 'sudo <command you want to run>' to run the command with root priviledge.

Last edited by bigrigdriver; 10-18-2007 at 02:18 PM..
bigrigdriver is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
How to recover lost Root password in Suse Enterprise 9.0 manya Linux - Security 3 02-05-2006 07:56 AM
Lost Suse 8.0 Root Password 12jewels Suse/Novell 3 03-31-2005 03:58 PM
lost root´s password on SuSE 9.0 Adrian13 Linux - Networking 13 11-27-2004 02:06 AM
Suse 8.2 won't remember root password as reg. user obarney Linux - General 6 09-29-2003 12:25 PM


All times are GMT -5. The time now is 03:26 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration