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

I want to change my root password. Where do I do it in Debian?
Delta Gamma
 
Posts: 21
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: 2439
Joined: 2009-06-28 06:09

Re: How do I change the root password?

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

I will do that.
Delta Gamma
 
Posts: 21
Joined: 2018-12-06 10:13

Re: How do I change the root password?

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

My root password don't work. I have tried it many times.
Delta Gamma
 
Posts: 21
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.
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10688
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable