LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-08-2020, 02:29 PM   #1
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Rep: Reputation: Disabled
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.
 
Old 03-08-2020, 02:34 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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,

Last edited by BW-userx; 03-08-2020 at 02:37 PM.
 
1 members found this post helpful.
Old 03-08-2020, 02:35 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Caps-lock was on when password was set?
boot from iso and chroot into system to change password.
 
3 members found this post helpful.
Old 03-08-2020, 02:53 PM   #4
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
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.
 
1 members found this post helpful.
Old 03-08-2020, 02:57 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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..

Resetting a Password Using Chroot
 
2 members found this post helpful.
Old 03-08-2020, 03:00 PM   #6
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
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
 
1 members found this post helpful.
Old 03-08-2020, 03:06 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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.
 
2 members found this post helpful.
Old 03-08-2020, 09:57 PM   #8
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
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.
 
Old 03-08-2020, 10:00 PM   #9
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
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 ?
 
Old 03-09-2020, 02:13 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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
Code:
sudo su -
passwd
sounds like good advice to me.

And read
Code:
man passwd
 
2 members found this post helpful.
Old 03-09-2020, 02:26 AM   #11
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
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.
 
2 members found this post helpful.
Old 03-09-2020, 05:07 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
you can use the debian install iso select advance>rescue at the boot menu. Follow the prompts and it will auto run the above commands for chroot.

Last edited by colorpurple21859; 03-09-2020 at 05:26 AM.
 
2 members found this post helpful.
Old 03-09-2020, 07:38 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
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?
 
1 members found this post helpful.
Old 03-13-2020, 03:59 AM   #14
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
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 ...
 
Old 03-13-2020, 05:07 AM   #15
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
it is passwd not psswd
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
liveCD installer asks for root password, but means the liveCD's root password newbiesforever VectorLinux 4 04-23-2013 01:16 PM
[SOLVED] I did chown -R root:root /usr - did I screw it up? Lennie Slackware 13 11-08-2012 08:34 AM
Why did it take me so long to find out what to do to be able to post "Hi"? mats@anjnsan.se LinuxQuestions.org Member Intro 3 09-04-2010 10:47 AM
Did anyone run GLChess succesfully in Debian... anyone? jlinkels Linux - Software 14 12-30-2008 04:47 AM
How did Anyone Learn Linux Before there were Linux Forums? halfpower General 19 06-27-2006 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration