Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How do I change the root password?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

How do I change the root password?

#1 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:03, edited 2 times in total.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: How do I change the root password?

#2 Post by 4D696B65 »

Open a terminal, log in as root and type

Code: Select all

passwd

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: How do I change the root password?

#3 Post by Delta Gamma »

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?

#4 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:03, edited 2 times in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: How do I change the root password?

#5 Post by Head_on_a_Stick »

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.
deadbang

Post Reply