You are not logged in.

#1 2005-07-01 19:59:29

KWITCHABITCHN
Member
From: Chicago, IL
Registered: 2005-03-23
Posts: 11

reset root password

I was just trying some things and I wanted to see if I could change my root password with the usermod command, so I typed in the command
usermod -pXXXX root

This changed my password, but not to what I typed in.  Now my original password doesn't work, nor the new password I typed in.  Just wondered if anybody new anything.

Thanks

Offline

#2 2005-07-01 20:08:24

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: reset root password

do you have sudo setup? If not, you will probably need to boot directly into a shell...you can pass some string to grub to acheive this, but i cant remember it offhand.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-07-01 20:10:15

KWITCHABITCHN
Member
From: Chicago, IL
Registered: 2005-03-23
Posts: 11

Re: reset root password

no, i don't have sudo setup, Does anyone know how to boot into a shell with grup, i haven't been able to figure it out.

Offline

#4 2005-07-01 20:40:02

KWITCHABITCHN
Member
From: Chicago, IL
Registered: 2005-03-23
Posts: 11

Re: reset root password

thanks for the help i figured out how to do it and its fixed.

Offline

#5 2005-07-01 20:43:16

max_sipos
Member
From: Ithaca, NY
Registered: 2004-10-31
Posts: 106
Website

Re: reset root password

I think you might be able to change it by logging into single mode. Once in Grub choose whatever option it is to add boot parameters and add 'single' to the end of the line.

Offline

#6 2005-07-01 21:47:27

Euphoric Nightmare
Member
From: Kentucky
Registered: 2005-05-02
Posts: 283

Re: reset root password

max_sipos wrote:

I think you might be able to change it by logging into single mode. Once in Grub choose whatever option it is to add boot parameters and add 'single' to the end of the line.

Will this not ask for a root password?

Offline

#7 2005-07-01 23:54:40

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: reset root password

i believe passwordless singe user mode is a more redhat centric setup. not positive though...


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2005-07-02 00:13:55

noamsml
Member
Registered: 2005-06-25
Posts: 42
Website

Re: reset root password

reboot into grub and pass the kernel the argument "single", this should let you boot with root permissions.


I summon daemons from the depths of /etc/rc.d

Offline

#9 2005-07-02 00:18:09

Euphoric Nightmare
Member
From: Kentucky
Registered: 2005-05-02
Posts: 283

Re: reset root password

I'm pretty sure arch single user mode asks for a password or CTRL+D to boot into normal mode or whatever.

Offline

#10 2005-07-02 00:32:35

noamsml
Member
Registered: 2005-06-25
Posts: 42
Website

Re: reset root password

hmmm...

maybe he could boot from a LiveCD, change the root password on the LiveCD to something he wants and then copy the respective part of /etc/shadow?


I summon daemons from the depths of /etc/rc.d

Offline

#11 2005-07-02 00:47:24

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: reset root password

using a livecd, you simply chroot to the arch partition and run the passwd command.

There's talk elsewhere on this forum about how to use grub to run bash directly with root privleges. Can't remember how.

Dusty

Offline

#12 2005-07-02 00:54:01

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: reset root password

There's talk elsewhere on this forum about how to use grub to run bash directly with root privleges. Can't remember how.

funny. I mentioned that in the second post.

Anyway, he said he fixed it. I don't see why people are still trying to provide off the wall solutions.
oh well.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#13 2005-07-02 00:55:23

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: reset root password

When in Grub, press 'e' to edit the boot option. Then add "init=/bin/bash rw" at the end to log in as root. Change password and reboot.

EDIT:

Anyway, he said he fixed it. I don't see why people are still trying to provide off the wall solutions.
oh well.

Indeed, I missed him mentioning it, but now you say... Oh well.

Offline

#14 2005-07-02 00:59:30

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,681

Re: reset root password

Glad he got it fixed... for the record, Knoppix can do it with:

sudo mount -o rw /dev/hda1 /mnt/hda1
sudo chroot /mnt/hda1 passwd

...that's right if I remember correctly.


oz

Offline

#15 2005-07-02 01:00:15

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: reset root password

This should go in the wiki if its been brought up so much lately... I think there is something about how to do it using a live CD in there, but not the grub method. I'd do it, but I  really don't feel like it right now, so I'm suggesting some other eager user take a look at it.

Dusty

Offline

Board footer

Powered by FluxBB