LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-17-2009, 02:51 PM   #1
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 123

Rep: Reputation: 16
The system forgot the root password


One weird problem happened to me. I cannot login as root. I swear that I have not change my root password, but somehow, the machine just don't let me logging in. I don't have the USB bootdisk with me, and I only have the install DVD with me. What can I do? I'm thinking about wiping out the thing and reinstall it (I have /home on a different partition, so I don't worry much about losing the data). But is there anything I can do before coming to such drastic measure.

I'm using Slackware 12.2
 
Old 05-17-2009, 02:55 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,855

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
yeah that IS drastic, and there's no way it could "forget" a password... on the bootloader prompt, edit the boot command (press "e" on grub, can't remember what it is on lilo if that's what slackware still uses), and just add a "1" to the line then boot. this will boot you to single user mode, automatically logging you in as root, where you can run "passwd" to set the password to whatever you want.
 
Old 05-17-2009, 03:18 PM   #3
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 452

Rep: Reputation: Disabled
And if that doesn't work, you can use a live or installation CD/DVD, mount the root partition and edit /etc/shadow removing the password field for user "root". You can set it to something non-empty with "passwd" once you boot back to your normal system.
 
Old 05-17-2009, 04:51 PM   #4
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 454

Rep: Reputation: 35
Well, if the root password was really changed then this would suggest that the system was compromised...

What services are you running?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgot my root password mrjimmymathew Linux - Desktop 4 01-13-2009 11:42 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Forgot root password guy_ripper Linux - Security 9 10-31-2006 09:42 AM
forgot root password ??? insigniya Linux - General 2 03-28-2006 09:03 AM
forgot root password. How can I... 95se Linux - General 7 10-28-2003 01:12 AM


All times are GMT -5. The time now is 10:20 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
Open Source Consulting | Domain Registration