[SOLVED] Debian won`t take the root password but did before / Can anyone post a solution ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Debian won`t take the root password but did before / Can anyone post a solution ?
This is a odd one...Debian all of a sudden wont take the root password i set when i installed it but has always done so before, even after entering several times and i`m sure it`s the right one as i never changed it. AnyWay to correct this with out a complete re-install ?
I found this out when i tried to install a package & tried to enter root without any package install.
does it use the
sudo su
to get root? if so go root
the give yourself a new passwd see. if Debian is set up to do sudo for root user, it does not take passwd sudo does.
how did you get it to take a passwd to begin with?
I got my sudoers file set to NOPASSWD:ALL so yeah and it is my own system, no one else on it but me, so same passwd -- don't tell no one i told you that. mums the word,
does it use the
sudo su
to get root? if so go root
the give yourself a new passwd see. if Debian is set up to do sudo for root user, it does not take passwd sudo does.
how did you get it to take a passwd to begin with?
I got my sudoers file set to NOPASSWD:ALL so yeah and it is my own system, no one else on it but me, so same passwd -- don't tell no one i told you that. mums the word,
Can you explain this procedure step by step as i don`t know anything about the subject. The PW was set up when i did the initial install so when installing a new package it is required to install, get the usual message to "Authenticate User" before installing.
you might be better off taking colorpurple21859 suggestion. chroot change passwd, but first! check it again to be sure you didn't by mistake have your caps on..
Caps-lock was on when password was set?
boot from iso and chroot into system to change password.
No caps lock certain of it, set at install never changed and used before...(( boot from iso and chroot into system to change password )) / Can you explain this procedure step by step in simple language code / comment or whatever needed ? Never heard of this before either
Using debian 10.2
boot live iso, as root it will be something like this from a terminal/console if /dev/sda3 was your / partition change it accordingly.
Code:
mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt
passwd
exit
Last edited by colorpurple21859; 03-08-2020 at 03:16 PM.
boot live iso, as root it will be something like this from a terminal/console if /dev/sda3 was your / partition change it accordingly.
Code:
mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt
passwd
exit
Line 7 passwd = change passwd / Correct ? // And need to use a debian live iso 10.2 / Correct ?
Could something close to 10.2 be used / Don`t know if i can get one but if on debian.org site no problem.
boot live iso, as root it will be something like this from a terminal/console if /dev/sda3 was your / partition change it accordingly.
Code:
mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt
passwd
exit
Just to be certain this will reset the **ROOT PW** Correct ?
Are you aware of the difference between the root password, and the user password? The latter can be used to gain superuser privileges on most systems, so
You never know but maybe the keyboard layout may be substituting characters. Type the password in a text file and make sure it reflects what you think is the correct password.
I found this out when i tried to install a package & tried to enter root without any package install.
I'm wondering exactly what the above statement means. How did the OP try to access root, exactly?
I don't use Debian but the last time I tried it, the 'live/install' media used sudo while the actual installation to the hard drive did not by default. The OP has been asked but has not answered this question so maybe an answer to that would help?
boot live iso, as root it will be something like this from a terminal/console if /dev/sda3 was your / partition change it accordingly.
Code:
mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt
passwd
exit
Sorry for taking so long to respond...I found this on YT it`s easier but won`t work on my version of debian 10.2 i keep getting a error mentioning something about -p etc.
Here`s what i got off the video & does anybody know the code for debian 10.2 ?
On boot up hit the E button on keyboard and add the following at the end of the kernal line.
int=/bin/bash // Then ctrl + x -Then- /#mount -pw -o remount /# psswd
Can anyone point what`s wrong here or is it just no longer working in debian 10.2 ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.