I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root.
Today at 10:46am, Darrell Skildum wrote:
I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root.
If you haven't tried searching Google, give it "lost root password" and you will find numerous resources to help you--more and better information than most of us on the list can (re)write in an individual response. Jim Cunning
i think you can stop grub with control+c then type "single user" then passwd root telinit 5 :) (untested) --fg
Hi,
Fermin Goiriz
i think you can stop grub with control+c then type "single user" then passwd root telinit 5
Should not work in most distros because most distros will tell you: [...] Going to single-user mode Give root password to login: bis dahin - kind regards Martin Mewes -- Member of the Webmin Translation Team http://www.webmin.com/ http://webmin.mamemu.de/ Debian, SuSE, Securityfocus and Webmin - Mailinglist mboxes http://www.mewes.tv/mbox/
Hi,
Darrell Skildum
I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root.
http://www.aplawrence.com/Linux/lostlinuxpassword.html bis dahin - kind regards Martin Mewes -- Member of the Webmin Translation Team http://www.webmin.com/ http://webmin.mamemu.de/ Debian, SuSE, Securityfocus and Webmin - Mailinglist mboxes http://www.mewes.tv/mbox/
On Thursday 18 November 2004 2:05 pm, Martin Mewes wrote:
Hi,
Darrell Skildum
wrote : I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root. It is very simple. Boot the SuSE rescue CD (or any other Linux bootable CD). Mount the root directory of your system. use the chroot command to temporarily set that as root. Then change the password using the passwd command. Here is an example: # mount /dev/hda5 /mnt # Mount the root directory from your SuSE 9.1 system # chroot /mnt # make that the root # passwd root Changing password for root. New password: Re-enter new password: Password changed.
Exit chroot
umount /mnt.
Then reboot, and test the passwd.
--
Jerry Feldman
This worked. I used disk one of the install to boot as a rescue, and then followed your instructions. Thanks. On Thursday 18 November 2004 15:12, Jerry Feldman wrote:
On Thursday 18 November 2004 2:05 pm, Martin Mewes wrote:
Hi,
Darrell Skildum
wrote : I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root.
It is very simple. Boot the SuSE rescue CD (or any other Linux bootable CD). Mount the root directory of your system. use the chroot command to temporarily set that as root. Then change the password using the passwd command. Here is an example: # mount /dev/hda5 /mnt # Mount the root directory from your SuSE 9.1 system # chroot /mnt # make that the root # passwd root Changing password for root. New password: Re-enter new password: Password changed.
Exit chroot umount /mnt. Then reboot, and test the passwd.
-- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
On Thu, 2004-11-18 at 10:46 -0500, Darrell Skildum wrote:
I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root.
If you have been careful not to change the root password, who has? David -- "Never offend people with style when you can offend them with substance" -Sam Brown
On Thursday 18 November 2004 15:26, David Robertson wrote:
On Thu, 2004-11-18 at 10:46 -0500, Darrell Skildum wrote:
I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root.
If you have been careful not to change the root password, who has?
David That becomes the real issue. See previous reply. I feel that I may have changed a rule rather than the password.
Darrell Skildum wrote:
I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root.
1.- use cd1 and start rescue mode 2.- mount root partition in /mnt 3.- chroot to /mnt 4.- passwd 5.- yipiii Regards
Darrell Skildum wrote:
I have two systems with SuSE 9.1 installed. On one of them, the password for Root seems to have been changed. I have been careful not to change this. What is the easiest way to re-instate a password for Root.
The only way I know, is to boot with a rescue disk and edit the /etc/shawdow file. You have to copy the hash of a known password, into the root's entry. You also might edit /etc/passwd, to allow root to log in without a password, and once in, create a new one.
participants (8)
-
Darrell Skildum
-
David Robertson
-
Fermin Goiriz
-
James Knott
-
Jerry Feldman
-
Jim Cunning
-
LeoRivas
-
Martin Mewes