Title: RE: [clug-talk] Forcing a boot into single user mode

When you say:

>>First, you will have to boot at the command line with 'init=/bin/sh'

Is there a way to 'break' at some point during booting which will stop Linux from starting the login shell?

Shane

NOTICE -
This communication is intended ONLY for the use of the person or entity named above and may contain information that is confidential or legally privileged. If you are not the intended recipient named above or a person responsible for delivering messages or communications to the intended recipient, YOU ARE HEREBY NOTIFIED that any use, distribution, or copying of this communication or any of the information contained in it is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone and then destroy or delete this communication, or return it to us by mail if requested by us. The City of Calgary thanks you for your attention and cooperation.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Ian Wormsbecker
Sent: 2004 August 31 1:27 PM
To: CLUG General
Subject: Re: [clug-talk] Forcing a boot into single user mode


> We want to boot into single user mode so that we can change the root
> password to something we'll actually remember...

You can try to boot at the command line with 'linux single'. Depending
on your distribution, you may have to enter a password :( If this is the
case, you can still get around it, it just requires a bit more work.

First, you will have to boot at the command line with 'init=/bin/sh'

Then, you need to mount the root filesystem (and any others that you may
need) in order to write to the password files.

# mount -o remount,rw /

Then you can change the passwd :)

# passwd

Then you need to mount the root filesystem as read only so you can
powerdown without wrecking things

# mount -o remount,ro /

Then turn the power off :)



Cheers

Ian.



_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to