Changing root password on Debian

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
pandaman09
New to forums
New to forums
Posts: 9
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Oct 18, 2012 11:22 am

Changing root password on Debian

Post by pandaman09 »

Hello,
I have attempted to follow the resetting the password guide but was unsuccessful.
http://forums.nfoservers.com/viewtopic.php?f=46&t=5792
The first method didn't work so I attempted the second method, setting the init file to /bin/bash (shell), the server booted but I received an error
Bash: cannot set terminal process group (-1) ...
Bash: no job control in this shell

Any ideas as to what I am doing wrong? I do not want to reinstall Debian as I have server files that would require backing up.
enghell
New to forums
New to forums
Posts: 14
Joined: Thu Aug 13, 2015 7:15 pm

Re: Changing root password on Debian

Post by enghell »

Your title differs from what you are trying to do, if you actually can login with a sudo account do sudo passwd root or if you are running the root user do the passwd root .

May only if you were a bit confused on what you were trying to do. Also if you are trying to rest your password (as I'm not a big Linux fan) I'd like to suggest you to do a little googling and I'm sure you can get some faster help.

I hope my answer can help you. sudo passwd root or if you are running the root user do the passwd root .

May only if you were a bit confused on what you were trying to do. Also if you are trying to rest your password (as I'm not a big Linux fan) I'd like to suggest you to do a little googling and I'm sure you can get some faster help.

I hope my answer can help you.
Last edited by enghell on Mon Aug 17, 2015 5:39 pm, edited 1 time in total.
pandaman09
New to forums
New to forums
Posts: 9
Joined: Thu Oct 18, 2012 11:22 am

Re: Changing root password on Debian

Post by pandaman09 »

I'm attempting to change it because I do not know it. Running init as bash should allow me to change the password after bootup correct?
I know that passwd is the command needed to change the password.
enghell
New to forums
New to forums
Posts: 14
Joined: Thu Aug 13, 2015 7:15 pm

Re: Changing root password on Debian

Post by enghell »

This link https://pve.proxmox.com/wiki/Debian_reset_root_password will actually help you, you can run a live cd of Debian plugin one from the server control panel
pandaman09
New to forums
New to forums
Posts: 9
Joined: Thu Oct 18, 2012 11:22 am

Re: Changing root password on Debian

Post by pandaman09 »

That worked! Thank you very much.
Post Reply