Personal computing discussed

Moderators: renee, SecretSquirrel, notfred

 
Thin Man
Gerbil First Class
Topic Author
Posts: 121
Joined: Sun Aug 14, 2016 4:40 pm
Location: CIA safehouse near Moose Jaw

Debian 9.1 root password

Sun Jul 23, 2017 2:37 pm

Greetings Esteemed fellow Gerbils. By chance is anyone else here fighting with Debian 9.1? Seems to be a problem with it accepting the root password that was entered at install. Ive done some searching and found it's not uncommon, but didn't find a lot in the way of answers to the problem. 9.0 had some problems too. Hence-9.1. Debian seems to have some difficulties since Mr. Ian's passing, hope things get straightened out.
"If you take up a starving dog and feed it, it will not bite you. This is the primary difference between a man and a dog." Mark Twain
 
whm1974
Emperor Gerbilius I
Posts: 6361
Joined: Fri Dec 05, 2014 5:29 am

Re: Debian 9.1 root password

Sun Jul 23, 2017 2:42 pm

I didn't know that Debian's found had died. Sad to see to him go, he will be missed.
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Debian 9.1 root password

Sun Jul 23, 2017 2:44 pm

Have you tried booting into single user / recovery mode and resetting the password from there?
Nostalgia isn't what it used to be.
 
Thin Man
Gerbil First Class
Topic Author
Posts: 121
Joined: Sun Aug 14, 2016 4:40 pm
Location: CIA safehouse near Moose Jaw

Re: Debian 9.1 root password

Sun Jul 23, 2017 2:49 pm

Have you tried booting into single user / recovery mode and resetting the password from there?


That will be my next attempt. So far it won't accept the root password to do anything. Thought I'd ask before I floundered around too much. Thanks for the suggestion.
"If you take up a starving dog and feed it, it will not bite you. This is the primary difference between a man and a dog." Mark Twain
 
Thin Man
Gerbil First Class
Topic Author
Posts: 121
Joined: Sun Aug 14, 2016 4:40 pm
Location: CIA safehouse near Moose Jaw

Re: Debian 9.1 root password

Sun Jul 23, 2017 2:53 pm

whm1974 wrote:
I didn't know that Debian's found had died. Sad to see to him go, he will be missed.


Dec. of 2015 he apparently committed suicide. Yes sad case.
"If you take up a starving dog and feed it, it will not bite you. This is the primary difference between a man and a dog." Mark Twain
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Debian 9.1 root password

Sun Jul 23, 2017 5:55 pm

Thin Man wrote:
Have you tried booting into single user / recovery mode and resetting the password from there?

That will be my next attempt. So far it won't accept the root password to do anything. Thought I'd ask before I floundered around too much. Thanks for the suggestion.

Turns out you need the root password for recovery mode too. :oops:

Here's how to get around that:

1. Boot system, and hit "e" at the grub menu before the system starts to load. You will get a screen where you can manually edit the system boot options.

2. Find the line that starts with "linux /boot" and add a space, followed by "init=/bin/bash" to the end of that line. Note: line may wrap around on the screen, make sure you're REALLY at the end!

3. Hit F10. System should boot into a root shell.

4. Enter the command "mount -rw -o remount /". This makes the root file system writable so you can change the password.

5. Use the "passwd" CLI utility to reset the root password.

6. Type "sync".

7. Reboot the system.
Nostalgia isn't what it used to be.
 
Thin Man
Gerbil First Class
Topic Author
Posts: 121
Joined: Sun Aug 14, 2016 4:40 pm
Location: CIA safehouse near Moose Jaw

Re: Debian 9.1 root password

Sun Jul 23, 2017 6:21 pm

just brew it! wrote:
Thin Man wrote:
Have you tried booting into single user / recovery mode and resetting the password from there?

That will be my next attempt. So far it won't accept the root password to do anything. Thought I'd ask before I floundered around too much. Thanks for the suggestion.

Turns out you need the root password for recovery mode too. :oops:

Here's how to get around that:

1. Boot system, and hit "e" at the grub menu before the system starts to load. You will get a screen where you can manually edit the system boot options.

2. Find the line that starts with "linux /boot" and add a space, followed by "init=/bin/bash" to the end of that line. Note: line may wrap around on the screen, make sure you're REALLY at the end!

3. Hit F10. System should boot into a root shell.

4. Enter the command "mount -rw -o remount /". This makes the root file system writable so you can change the password.

5. Use the "passwd" CLI utility to reset the root password.

6. Type "sync".

7. Reboot the system.



Yes, I was afraid that would be the answer. Was foolishly thinking I could get away easier, not that it's really that hard, but one tends to expect to not have to do the cli dance with an update that's supposed to fix problems rather than add them.
My fault though, I've been at this long enough to know better. As they say " Ubuntu, an ancient African word that means Help, I can't configure Debian"
Thanks for taking the time to help though. :D
"If you take up a starving dog and feed it, it will not bite you. This is the primary difference between a man and a dog." Mark Twain
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Debian 9.1 root password

Sun Jul 23, 2017 6:29 pm

On the bright side, it's really a generic set of instructions for recovering from "I don't know the root password" situations, regardless of how you got there. :wink:
Nostalgia isn't what it used to be.
 
Thin Man
Gerbil First Class
Topic Author
Posts: 121
Joined: Sun Aug 14, 2016 4:40 pm
Location: CIA safehouse near Moose Jaw

Re: Debian 9.1 root password

Sun Jul 23, 2017 7:18 pm

just brew it! wrote:
On the bright side, it's really a generic set of instructions for recovering from "I don't know the root password" situations, regardless of how you got there. :wink:


Quite true. And at my age anything that helps the memory is good. :lol:
"If you take up a starving dog and feed it, it will not bite you. This is the primary difference between a man and a dog." Mark Twain
 
notfred
Maximum Gerbil
Posts: 4610
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Re: Debian 9.1 root password

Mon Jul 24, 2017 7:56 am

Alternatively use a live USB image and boot that (via BIOS boot menu), then in the live image you can become root (sudo su), mount the hard drive and go vi the mounted etc/shadow file to clear the root passwd. Reboot and then set the root passwd to what you like. Or rather than editing the etc/shadow you can chroot to the mounted partition and then run the passwd utility.

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On