Re: Reset root password

2002-09-24 Thread jon787

On Sun, Sep 22, 2002 at 10:28:55PM -0500, John Manko wrote:
 Tom Cook wrote:
 Cant you just boot in single user mode and passwd?
 
Mine asks for the root password to enter maintenence mode.
-- 
Jon
if(effortmotivation) {act();} else {slack();}
http://tesla.resnet.mtu.edu/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Reset root password

2002-09-24 Thread Osamu Aoki

On Tue, Sep 24, 2002 at 11:50:29AM -0400, [EMAIL PROTECTED] wrote:
 On Sun, Sep 22, 2002 at 10:28:55PM -0500, John Manko wrote:
  Tom Cook wrote:
  Cant you just boot in single user mode and passwd?
  
 Mine asks for the root password to enter maintenence mode.
Because you are on Debian :-)

There are few ways to do this.  See few ways here

 http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s8.1

-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +
Osamu Aoki @ Cupertino CA USA, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://www.debian.org/doc/manuals/reference/ also http://qref.sf.net
 `. `'  Our Priorities are Our Users and Free Software --- Social Contract


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





Reset root password

2002-09-22 Thread Matthew Daubenspeck

I have acquired a hand me down debian potato box that I need to do some
serious overhaul work on, but the old admin doesn't remember the root
password.

Does anyone have a quick and dirty FAQ or doc on how to reset/change the
root password?

Thanks for the help.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Reset root password

2002-09-22 Thread nate

Matthew Daubenspeck said:
 I have acquired a hand me down debian potato box that I need to do some
 serious overhaul work on, but the old admin doesn't remember the root
 password.

 Does anyone have a quick and dirty FAQ or doc on how to reset/change the
 root password?

if its using lilo the easy way is when you see the LILO prompt hit shift
then type

linux init=/bin/bash

then once the system is up do

mount / -o remount,rw

then edit /etc/shadow and delete all the stuff between the first and
second colons,

then

mount / -o remount,ro

reboot

when it comes up login as root(you shouldn't be prompted for a password.

another way is to boot with a boot disk and mount the drive and edit
the file

nate




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Reset root password

2002-09-22 Thread Tom Cook

On  0, nate [EMAIL PROTECTED] wrote:
 Matthew Daubenspeck said:
  I have acquired a hand me down debian potato box that I need to do some
  serious overhaul work on, but the old admin doesn't remember the root
  password.
 
  Does anyone have a quick and dirty FAQ or doc on how to reset/change the
  root password?
 
 if its using lilo the easy way is when you see the LILO prompt hit shift
 then type
 
 linux init=/bin/bash
 
 then once the system is up do
 
 mount / -o remount,rw

then 'passwd'?  Or is there some reason that doesn't work?

Tom

 then edit /etc/shadow and delete all the stuff between the first and
 second colons,
 
 then
 
 mount / -o remount,ro
 
 reboot
 
 when it comes up login as root(you shouldn't be prompted for a password.
 
 another way is to boot with a boot disk and mount the drive and edit
 the file
 
 nate
 
 
 
 

-- 
Tom Cook
Information Technology Services, The University of Adelaide

Why are Fire Engines Red?
  They have four wheels and eight men; four plus eight is twelve.
Twelve inches make a ruler; a ruler is Queen Elizabeth.
  Queen Elizabeth sails the seven seas; the seven seas have fish.
The fish have fins; the Finns hate the Russians.
  The Russians are red; fire engines are always rushin'.
So they're red.

Get my GPG public key: 
https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au



msg03097/pgp0.pgp
Description: PGP signature


howto reset root password with setup disk (or some other way)

2000-07-23 Thread Corry Opdenakker
Hi people,

for some dark reason is my rootpassword changed.

does anyone know how I can reset the password for root?
A while a go someone told me that this is possible by using the install-boot
disc or cd's.

I hope I will not have to reinstall my machine.

All help and tips are welcome!
kind regards and best wishes, Corry.




Re: howto reset root password with setup disk (or some other way)

2000-07-23 Thread Mark Brown
On Sun, Jul 23, 2000 at 01:13:15PM +0200, Corry Opdenakker wrote:

 does anyone know how I can reset the password for root?
 A while a go someone told me that this is possible by using the install-boot
 disc or cd's.

Delete the second field from root's entry in /etc/passwd (/etc/shadow if 
you're using shadow passwords - you'll have an x in the passwd file if
you are).  This will remove root's password, and you can reset it using
passwd.  

A safer thing to do is to generate a new crypted password and directly 
replace the password, but unless you're on-line when you do this I
wouldn't worry about it.

-- 
Mark Brown  mailto:[EMAIL PROTECTED]   (Trying to avoid grumpiness)
http://www.tardis.ed.ac.uk/~broonie/
EUFShttp://www.eusa.ed.ac.uk/societies/filmsoc/


pgpfQTAxaCMAF.pgp
Description: PGP signature


RE: howto reset root password with setup disk (or some other way)

2000-07-23 Thread Corry Opdenakker
yes, but there is one additional problem: Currently I'm not logged on as
root.

So the door is closed, And I have key anymore to open it.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Mark Brown
Sent: Sunday, July 23, 2000 13:38
To: 'debian-user@lists.debian.org'
Subject: Re: howto reset root password with setup disk (or some other
way)


On Sun, Jul 23, 2000 at 01:13:15PM +0200, Corry Opdenakker wrote:

 does anyone know how I can reset the password for root?
 A while a go someone told me that this is possible by using the
install-boot
 disc or cd's.

Delete the second field from root's entry in /etc/passwd (/etc/shadow if 
you're using shadow passwords - you'll have an x in the passwd file if
you are).  This will remove root's password, and you can reset it using
passwd.  

A safer thing to do is to generate a new crypted password and directly 
replace the password, but unless you're on-line when you do this I
wouldn't worry about it.

-- 
Mark Brown  mailto:[EMAIL PROTECTED]   (Trying to avoid grumpiness)
http://www.tardis.ed.ac.uk/~broonie/
EUFShttp://www.eusa.ed.ac.uk/societies/filmsoc/



RE: howto reset root password with setup disk (or some other way)

2000-07-23 Thread Lukasz Walewski
On Sun, 23 Jul 2000, Corry Opdenakker wrote:

 yes, but there is one additional problem: Currently I'm not logged on as
 root.

If you can boot from install CD, there should be a shell session
on some virtual console ( probably second ) with root's privileges.
You can mount your root device under /mnt or elsewhere and follow
the instructions given by Mark.

Lukas


Lukasz Walewski
Centrum Onkologii Instytut
[EMAIL PROTECTED]




 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
 Mark Brown
 Sent: Sunday, July 23, 2000 13:38
 To: 'debian-user@lists.debian.org'
 Subject: Re: howto reset root password with setup disk (or some other
 way)
 
 
 On Sun, Jul 23, 2000 at 01:13:15PM +0200, Corry Opdenakker wrote:
 
  does anyone know how I can reset the password for root?
  A while a go someone told me that this is possible by using the
 install-boot
  disc or cd's.
 
 Delete the second field from root's entry in /etc/passwd (/etc/shadow if 
 you're using shadow passwords - you'll have an x in the passwd file if
 you are).  This will remove root's password, and you can reset it using
 passwd.  
 
 A safer thing to do is to generate a new crypted password and directly 
 replace the password, but unless you're on-line when you do this I
 wouldn't worry about it.
 
 -- 
 Mark Brown  mailto:[EMAIL PROTECTED]   (Trying to avoid grumpiness)
 http://www.tardis.ed.ac.uk/~broonie/
 EUFShttp://www.eusa.ed.ac.uk/societies/filmsoc/
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 



Re: howto reset root password with setup disk (or some other way)

2000-07-23 Thread Mark Brown
On Sun, Jul 23, 2000 at 01:51:51PM +0200, Corry Opdenakker wrote:

 yes, but there is one additional problem: Currently I'm not logged on as
 root.

Boot specifying init=/bin/bash on the kernel command line.  If you
have LILO, then say linux init=/bin/bash where linux is the name of
the LILO option for Linux.

If security features prevent you from doing this you should try booting
via the rescue disk.  Either get a shell from the installation system
and mount your root partition or say linux root=root_partition
init/bin/bash at the first prompt.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
 Mark Brown
 Sent: Sunday, July 23, 2000 13:38

Please quote properly: delete material not needed for context and place
new text after old.

-- 
Mark Brown  mailto:[EMAIL PROTECTED]   (Trying to avoid grumpiness)
http://www.tardis.ed.ac.uk/~broonie/
EUFShttp://www.eusa.ed.ac.uk/societies/filmsoc/


pgpVN5pg3fd6d.pgp
Description: PGP signature


Re: howto reset root password with setup disk (or some other way)

2000-07-23 Thread Gerhard Schromm
* Corry Opdenakker writes:
 does anyone know how I can reset the password for root?
 A while a go someone told me that this is possible by using the install-boot
 disc or cd's.

Reboot the computer and enter at the LILO-Prompt 'imagename
init=/bin/bash'

imagename ist the name of the Kernel you want to boot. The default is linux.

After this, remount / readwrite (with mount -n -o remount,rw /) and edit
your /etc/shadow. Remove the crypted password for root (the second
field. separator is ':'). Remount / readonly again (mount -n
-oremount,ro /) and reboot the machine.

Now you can log in as root without password.

bye Gerhard
-- 
Hi! I'm a .signature *virus*! Copy me into your ~/.signature to help me spread!



Re: howto reset root password with setup disk (or some other way)

2000-07-23 Thread Pavel M. Penev


On Sun, 23 Jul 2000, Corry Opdenakker wrote:

 Hi people,
 
 for some dark reason is my rootpassword changed.
 
 does anyone know how I can reset the password for root?
 A while a go someone told me that this is possible by using the install-boot
 disc or cd's.
 
 I hope I will not have to reinstall my machine.
 
 All help and tips are welcome!
 kind regards and best wishes, Corry.

Try booting from anywhere (the Debian installation source is a good
choice). Then mount the partition to which you mount / (the root file
system). Next open mount_point/etc/passwd with some editor (ae if from
the Debian install disks). Find the line which looks like this:

root:x:0:0:root:/root:/bin/bash

Change the x into , i.e. so that the line looks like

root::0:0:root:/root:/bin/bash

You no more have a password set for root so boot your machine and supply
an empty one to log in.

I also suggest reading passwd(1) :).

Success,
Pavel