Jump to content

Reset lost Jessie root password

So i know this is pretty stupid but i forgot my root password for jessie and now i can't access any root features how do i reset the password?

i've tried booting into recovery mode but it asks for the root password for maintenance

 

thanks in advance

                  CPU: Intel Core i5 6400 ~ ASUS GTX 950 OC STRIX GB ~

                           RAM: HyperX Fury DDR4 16GB dual channel 

MOBO: Gigabyte GA-H170-HD3 ~ SSD:HyperX Savage 240GB  ~  PSU: Corsair CX550M

 ~ MOUSE: Logitech G700s ~ KEYBOARD: Razer Blackwidow tournament

            HEADPHONES: Focousrite HP60  ~ MIC:Focusrite CM25 ~ A.I: Focusrite Scarlett 2i2 ~ MONITOR: Asus VC239H 23-inch IPS Monitor ~ CASE: Fractual Design define R4  ~ Corsair MM300 Medium

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

It wouldn't be a good password if you could reset it from recovery, would it? If you have a superuser account you can try

sudo passwd root

I don't think Debian has this blocked by default so it should work.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

after i type both passwords it says 

 

passwd: Authentication token manipulation error
passwd: password unchanged

@Ronda

                  CPU: Intel Core i5 6400 ~ ASUS GTX 950 OC STRIX GB ~

                           RAM: HyperX Fury DDR4 16GB dual channel 

MOBO: Gigabyte GA-H170-HD3 ~ SSD:HyperX Savage 240GB  ~  PSU: Corsair CX550M

 ~ MOUSE: Logitech G700s ~ KEYBOARD: Razer Blackwidow tournament

            HEADPHONES: Focousrite HP60  ~ MIC:Focusrite CM25 ~ A.I: Focusrite Scarlett 2i2 ~ MONITOR: Asus VC239H 23-inch IPS Monitor ~ CASE: Fractual Design define R4  ~ Corsair MM300 Medium

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Are you sure you correctly and successfully remounted the root partition with the

mount -rw -o remount /

If so, what's the output of

ls -la /etc/passwd

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/30/2016 at 8:57 AM, Mr Robot said:

So i know this is pretty stupid but i forgot my root password for jessie and now i can't access any root features how do i reset the password?

i've tried booting into recovery mode but it asks for the root password for maintenance

 

thanks in advance

look into boot option init=/bin/sh then run: to change the password of root and/or jessie.

passwd root
passwd jessie

 

BitBucket/Github:

PM if interested.

In accordance to Forum Community Standards:

No advertising of any non LTT/LMG material

  • Personal websites or businesses

Signatures

  • No Advertising/External Links, other than to other LTT forum posts

Link to comment
Share on other sites

Link to post
Share on other sites

Boot from another live system, like for example, the Arch Linux install disk, where you are logged in as root by default. Then, mount the needed file systems, like sysfs, dev and proc and chroot into the mounted disk as root. From there, you can use passwd as root to change the password.

Lenovo/IBM ThinkPad T61 Widescreen 15.4" 1680x1050
Intel Core2Duo T8300 2.4GHz | 3GB DDR2 from Hynix | SATA II Patched bios (Middleton) | Samsung EVO 850
Arch Linux | Linux 4.3.X x86_64

Link to comment
Share on other sites

Link to post
Share on other sites

I found out that sudo was actually broken @CRSaka..

@silentmelodies

And I have to use "pkexec"  instead

                  CPU: Intel Core i5 6400 ~ ASUS GTX 950 OC STRIX GB ~

                           RAM: HyperX Fury DDR4 16GB dual channel 

MOBO: Gigabyte GA-H170-HD3 ~ SSD:HyperX Savage 240GB  ~  PSU: Corsair CX550M

 ~ MOUSE: Logitech G700s ~ KEYBOARD: Razer Blackwidow tournament

            HEADPHONES: Focousrite HP60  ~ MIC:Focusrite CM25 ~ A.I: Focusrite Scarlett 2i2 ~ MONITOR: Asus VC239H 23-inch IPS Monitor ~ CASE: Fractual Design define R4  ~ Corsair MM300 Medium

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×