Ok, I know this comes up every so often, now it's my turn. I changed root's password and I'm now locked out. I have tried the rescue disk thing, but I must not be doing things right. I've looked through the archives as long as my eyes could stand. Could someone please spell out the procedure for deleting the old /etc/passwd and getting a new root password to stick? I thought I had this printed off, but I can't find it. Thanks a million! Tom
* TRBishop <tb64710@alltel.net> [Aug 13. 2001 15:13]:
Ok, I know this comes up every so often, now it's my turn. I changed root's password and I'm now locked out. I have tried the rescue disk thing, but I must not be doing things right. I've looked through the archives as long as my eyes could stand. Could someone please spell out the procedure for deleting the old /etc/passwd and getting a new root password to stick? I thought I had this printed off, but I can't find it. Thanks a million!
Just change the root line in /etc/shadow to: root::11522:0:10000:::: And the password is blank, ready to be set. Just boot your system with init=/bin/bash to fix -- Mads Martin Jørgensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.
----- Original Message ----- From: Mads Martin Jørgensen <mmj@suse.com> To: TRBishop <tb64710@alltel.net> Cc: <suse-linux-e@suse.com> Sent: Monday, August 13, 2001 5:17 PM Subject: Re: [SLE] Locked out
* TRBishop <tb64710@alltel.net> [Aug 13. 2001 15:13]:
Ok, I know this comes up every so often, now it's my turn. I changed root's snip< Just change the root line in /etc/shadow to:
root::11522:0:10000::::
And the password is blank, ready to be set. Just boot your system with init=/bin/bash to fix snip<
Thank you. Tom
On Monday 13 August 2001 15:17, Mads Martin Jørgensen wrote:
* TRBishop <tb64710@alltel.net> [Aug 13. 2001 15:13]:
Ok, I know this comes up every so often, now it's my turn. I changed root's password and I'm now locked out. I have tried the rescue disk thing, but I must not be doing things right. I've looked through the archives as long as my eyes could stand. Could someone please spell out the procedure for deleting the old /etc/passwd and getting a new root password to stick? I thought I had this printed off, but I can't find it. Thanks a million!
Just change the root line in /etc/shadow to:
root::11522:0:10000::::
And the password is blank, ready to be set. Just boot your system with init=/bin/bash to fix
If I understand the above correctly, you are unable to log in as root, correct? If so, then how is Martin's suggestion of changing /etc/shadow going to help you? You would need to be logged in as root to be able to edit this file. Or am I mistaken? Kevin
If I understand the above correctly, you are unable to log in as root, correct? If so, then how is Martin's suggestion of changing /etc/shadow going to help you? You would need to be logged in as root to be able to edit this file. Or am I mistaken?
~ you can use a boot disk { say, Tom's Killer Boot Disk } { http://www.toms.net/rb/ } then, mount the / root partition on, say, /mnt next, use vi to edit the password -- best wishes ____________ sent on Linux ____________
On Tue, Aug 14, 2001 at 05:21:53AM +0000, tabanna wrote:
If I understand the above correctly, you are unable to log in as root, correct? If so, then how is Martin's suggestion of changing /etc/shadow going to help you? You would need to be logged in as root to be able to edit this file. Or am I mistaken?
~ you can use a boot disk { say, Tom's Killer Boot Disk } { http://www.toms.net/rb/ } then, mount the / root partition on, say, /mnt next, use vi to edit the password
Every Linux user should have tomsrbt on floppy ! Cliff
Þann þriðjudagur 14 ágúst 2001 08:33 skrifaðir þú:
On Tue, Aug 14, 2001 at 05:21:53AM +0000, tabanna wrote:
If I understand the above correctly, you are unable to log in as root, correct? If so, then how is Martin's suggestion of changing /etc/shadow going to help you? You would need to be logged in as root to be able to edit this file. Or am I mistaken?
~ you can use a boot disk { say, Tom's Killer Boot Disk } { http://www.toms.net/rb/ } then, mount the / root partition on, say, /mnt next, use vi to edit the password
Every Linux user should have tomsrbt on floppy !
Cliff
Every ( paying ) SuSE-user has their CD-ROM number 1 ;-) -tosi
On Tue, Aug 14, 2001 at 07:17:56PM +0000, Tor Sigurdsson wrote:
ann rijudagur 14 gst 2001 08:33 skrifair :
On Tue, Aug 14, 2001 at 05:21:53AM +0000, tabanna wrote:
If I understand the above correctly, you are unable to log in as root, correct? If so, then how is Martin's suggestion of changing /etc/shadow going to help you? You would need to be logged in as root to be able to edit this file. Or am I mistaken?
~ you can use a boot disk { say, Tom's Killer Boot Disk } { http://www.toms.net/rb/ } then, mount the / root partition on, say, /mnt next, use vi to edit the password
Every Linux user should have tomsrbt on floppy !
Cliff
Every ( paying ) SuSE-user has their CD-ROM number 1 ;-)
-tosi
Hey, I am paying SuSE user... 4 versions worth But tomsrbt should still be in your collection..it is a miracle.. :) Cliff
On Tuesday 14 August 2001 12:21 am, tabanna wrote:
If I understand the above correctly, you are unable to log in as root, correct? If so, then how is Martin's suggestion of changing /etc/shadow going to help you? You would need to be logged in as root to be able to edit this file. Or am I mistaken?
~ you can use a boot disk { say, Tom's Killer Boot Disk } { http://www.toms.net/rb/ } then, mount the / root partition on, say, /mnt next, use vi to edit the password
--
You're right, it didn't. Could not do it by mounting / either. There must be a trick to editing a file mounted read-only that I do not know. I am not that familiar with vi. However, I took this as an *opportunity* to convert back to ext2fs instead of reiserfs, so I can use noflushd again. It does not work well with reiserfs as far as I have read, and I am tired of this whining Maxtor HD. Oh sure, they're quiet when they're new, but this one emits a whine just below the level of a dog whistle. So, thanks to all, but I'm back freshly-installed (after backup) and I'm off to get a copy of Tom's Boot Disk, in case I pull a bone-headed stunt like this again (which I will). Tom -- TRBishop tb64710@alltel.net SuSE 7.2 Pro
* Thomas Bishop <tb64710@alltel.net> [Aug 14. 2001 13:38]:
You're right, it didn't. Could not do it by mounting / either. There must be a trick to editing a file mounted read-only that I do not know. I am not
Oh, forgot to mention: mount -o remount,rw / Will remount the root partition in read-write mode (rw). Remember to mount it read-only (ro) before boot to avoid fsck. -- Mads Martin Jørgensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.
* Kevin Hochhalter <hkevin11@qwest.net> [Aug 13. 2001 21:15]:
On Monday 13 August 2001 15:17, Mads Martin Jørgensen wrote:
* TRBishop <tb64710@alltel.net> [Aug 13. 2001 15:13]:
Ok, I know this comes up every so often, now it's my turn. I changed root's password and I'm now locked out. I have tried the rescue disk thing, but I must not be doing things right. I've looked through the archives as long as my eyes could stand. Could someone please spell out the procedure for deleting the old /etc/passwd and getting a new root password to stick? I thought I had this printed off, but I can't find it. Thanks a million!
Just change the root line in /etc/shadow to:
root::11522:0:10000::::
And the password is blank, ready to be set. Just boot your system with init=/bin/bash to fix
If I understand the above correctly, you are unable to log in as root, correct? If so, then how is Martin's suggestion of changing /etc/shadow going to help you? You would need to be logged in as root to be able to edit this file. Or am I mistaken?
You can login now with a blank password and set it to whatever you want. -- Mads Martin Jørgensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.
Mads Martin Jørgensen wrote:
* Kevin Hochhalter <hkevin11@qwest.net> [Aug 13. 2001 21:15]:
On Monday 13 August 2001 15:17, Mads Martin Jørgensen wrote:
* TRBishop <tb64710@alltel.net> [Aug 13. 2001 15:13]:
[...]
Just change the root line in /etc/shadow to:
root::11522:0:10000::::
And the password is blank, ready to be set. Just boot your system with init=/bin/bash to fix
If I understand the above correctly, you are unable to log in as root, correct? If so, then how is Martin's suggestion of changing /etc/shadow going to help you? You would need to be logged in as root to be able to edit this file. Or am I mistaken?
The "logging in" phase is booting and entering kernelname init=/bin/bash after that, the system is to your mercy. Mads explaination is clear, but may be misleading to the novice.
You can login now with a blank password and set it to whatever you want.
yep that's after. ;-) Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\
participants (8)
-
Cliff Sarginson
-
Juergen Braukmann
-
Kevin Hochhalter
-
Mads Martin Jørgensen
-
tabanna
-
Thomas Bishop
-
Tor Sigurdsson
-
TRBishop