How do I change the root password?

New to Debian (Or Linux in general)? Ask your questions here!

How do I change the root password?

Postby Delta Gamma » 2019-04-12 10:47

delete
Last edited by Delta Gamma on 2020-02-09 08:03, edited 2 times in total.
Delta Gamma
 
Posts: 23
Joined: 2018-12-06 10:13

Re: How do I change the root password?

Postby 4D696B65 » 2019-04-12 11:30

Open a terminal, log in as root and type
Code: Select all
passwd
User avatar
4D696B65
 
Posts: 2469
Joined: 2009-06-28 06:09

Re: How do I change the root password?

Postby Delta Gamma » 2019-04-12 13:35

delete
Last edited by Delta Gamma on 2020-02-09 08:03, edited 2 times in total.
Delta Gamma
 
Posts: 23
Joined: 2018-12-06 10:13

Re: How do I change the root password?

Postby Delta Gamma » 2019-04-13 08:50

delete
Last edited by Delta Gamma on 2020-02-09 08:03, edited 2 times in total.
Delta Gamma
 
Posts: 23
Joined: 2018-12-06 10:13

Re: How do I change the root password?

Postby Head_on_a_Stick » 2019-04-13 09:09

How about
Code: Select all
sudo passwd root

If you haven't installed sudo then boot to a shell by adding init=/bin/bash to the kernel command line in GRUB then remount the filesystem read-write and run the passwd command for root to reset it.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12182
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: sasu and 9 guests

fashionable