Root password fail

New to Debian (Or Linux in general)? Ask your questions here!

Root password fail

Postby bushy5 » 2017-06-24 13:33

Just installed Debian 9 on a test box, used the same password for user and root. User password works but root does not. Do I have to re-install to correct or is there another solution?
bushy5
 
Posts: 2
Joined: 2017-06-24 13:10

Re: Root password fail

Postby dasein » 2017-06-24 13:41

There are at least four existing threads on this exact same question in just the last three days.

Short answer: known bug, supposedly fixed.

Slightly longer answer: check the existing threads for more detail.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Root password fail

Postby bushy5 » 2017-06-24 13:59

Interesting, I had searched using :root password fail: and didn't find anything similar. Is there a better search string?
bushy5
 
Posts: 2
Joined: 2017-06-24 13:10

Re: Root password fail

Postby Wheelerof4te » 2017-06-24 14:02

Yes, there is. It is called common sense and looking around:

viewtopic.php?f=17&t=133615
and
viewtopic.php?f=10&t=133551
User avatar
Wheelerof4te
 
Posts: 392
Joined: 2015-08-30 20:14

Re: Root password fail

Postby GarryRicketson » 2017-06-24 14:57

by bushy5 » Do I have to re-install to correct or is there another solution?

Probably no, you shouldn't have to re-install, but you really have not given enough information , also as all ready mentioned there have been several recent threads started
by people having similar problems.
There are many various Debian 9 ISO (images) for installing Debian, you do not tell us
which image you used.
In particular, the Live images had some problems, supposedly they are fixed.
Have you tried setting a new root password,..?
Do you know how to do that ? A search: keywords;
Code: Select all
How set lost root password

One , of many : http://www.debianadmin.com/how-to-reset-debian-root-password.html
In one of the other threads, part of the problem is the OP gets upset, and the thread gets hard to follow, please don't get up set.
Because maybe/probably, there is a some bugs involved , some of the things that normally would work, don't.
Once we know exactly which image you are using it will help. Let us know what you try,
and what error messages you get , if any.
Originally it was the Live images that had problems:
http://cdimage.debian.org/cdimage/release/current-live/amd64/iso-hybrid/
6. The root directory of the live images has very restrictive permissions

Status: Fixed in 9.0.1

The root directory is mode 0700 (i.e. drwx------)


That is just 1 of several, problems, until we know which image you are using , there is
not much any one can say, except suggest doing searches, etc.
With better details , someone may be able to tell you exactly what to do.
Again , please try not to get upset, we are trying our best to help you figure out how to
solve this. And on the Debian developers end, they also are working hard to try to resolve the issues.
Thank you
P.S. All though there maybe be bugs involved, occasionally , especially with people new to Linux, there have been occasions when the user simply did not install Debian correctly,and did not set the root password correctly, sometimes they think they did,
but a odd keyboard, or other factors , cause the problem,...usually it can be solved
without re-installing, but the important thing is that the OP gives clear and specific details, and does not start getting upset.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4276
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Root password fail

Postby Thorny » 2017-06-25 11:27

bushy5 wrote:Just installed Debian 9 on a test box, used the same password for user and root. User password works but root does not. Do I have to re-install to correct or is there another solution?

Ultimately you will get passed the bug in the installer you used. And developers will change the mistake.

Here is a piece of advice which you didn't ask for:
It is not a good idea to use the same password for root as you use for your normal user, that defeats the security model of your system and has the potential to cause you problems in the future even if you think it will make some things "easier". I suggest you reinstall using discrete, secure, passwords for root and your user and learn more about Debian security.
Thorny
 
Posts: 332
Joined: 2011-02-27 13:40

Re: Root password fail

Postby smit » 2017-07-02 06:52

I am having same problem
smit
 
Posts: 6
Joined: 2017-06-23 09:41

Re: Root password fail

Postby GarryRicketson » 2017-07-02 11:21

http://forums.debian.net/viewtopic.php?f=17&t=133604
Code: Select all
sudo -s
passwd root
passwd -u root
exit

Maybe this will work
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4276
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Root password fail

Postby wizard10000 » 2017-07-02 11:31

GarryRicketson wrote:...Maybe this will work


I'm afraid it won't. If you give root a password the installer doesn't give anybody sudo :(

edit: You guys are welcome to copypasta this solution into other threads if you want - I think there may be some value in a sticky for this, even though people are supposed to search first :)

Two ways to fix:

1. Reinstall but *do not* give root a password - leave the password fields blank. Debian defaults to sudo and you can set root's password later by just doing `sudo passwd root`.

2. A little more complicated, but doesn't require a reinstall:

  • In the grub menu, select your Debian installation and hit 'e' to edit kernel arguments.
  • Find the line in the editor that starts with 'linux' and add
    Code: Select all
    init=/bin/bash
    to the end of that line and hit F10 to boot.
  • Remount your filesystems read-write like this:
    Code: Select all
    mount -ano remount,rw
    .
  • Set root's password using
    Code: Select all
    passwd root
    .
  • Reboot and you should be fine.
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1196
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!

Re: Root password fail

Postby Seventh » 2017-07-02 11:47

I believe it is much safer and a good rule of thumb to not have a root password.

Perhaps this is debians methodology. Maybe the debian installer should come with an extra special warning when creating a root password if the software intends to default to sudo without root password.

I havent downloaded the live iso but instead had success with the netinstall iso as i like a minimal install. But i wonder what would happen if the live iso users chose not to submit a root password and just create a user + pass instead, maybe i should download a live iso and check it out for myself.
Seventh
 
Posts: 24
Joined: 2017-04-01 10:13

Re: Root password fail

Postby wizard10000 » 2017-07-02 12:08

Seventh wrote:...But i wonder what would happen if the live iso users chose not to submit a root password and just create a user + pass instead, maybe i should download a live iso and check it out for myself.


I prefer to use sudo as well. The problem (at least with live images) is that if you *do* give root a password that password doesn't get set and nobody gets added to sudoers, leaving no method to do anything as root.

If you *don't* give root a password in the installer Debian defaults to sudo and the user you create during install gets to be a sudoer.
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1196
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!

Re: Root password fail

Postby Seventh » 2017-07-02 12:18

wizard10000 wrote:
Seventh wrote:...But i wonder what would happen if the live iso users chose not to submit a root password and just create a user + pass instead, maybe i should download a live iso and check it out for myself.


If you *don't* give root a password in the installer Debian defaults to sudo and the user you create during install gets to be a sudoer.


Can you access root from user when this is done on the live iso?
Seventh
 
Posts: 24
Joined: 2017-04-01 10:13

Re: Root password fail

Postby Mike-DebianUser » 2017-07-19 15:30

I can verify that the issue has NOT been resolved in 9.01 (and there is no newer stable version available)

At least in the debian-live-9.0.1-i386-lxde+nonfree.iso release

I resolved it using the method posted here : viewtopic.php?f=30&t=133622#p648676

So thanks!
User avatar
Mike-DebianUser
 
Posts: 1
Joined: 2017-07-19 15:13

Re: Root password fail

Postby jmulchin » 2017-10-05 19:08

It would appear that this issue still remains a problem, even for Debian V9.1.0 release. I have been trying for 2 days now to get past this "root password fail" issue, and have no success. This problem happens in both the 9.1.0 amd64 ISO release and the 9.1.0 Net Install ISO release. In all cases, setting the Root Password during install will not work after the OS is installed and you login as Root directly. In every case, the root password, the one entered during installation, will not be accepted. If you login as a normal user, then su to root, the install password will work. Trying to change the root password using "su" with passwd will not work either. There appears to be no way to change the root password at all. I think the failure has nothing to do with the installation, the same password works under "su" from a normal user login. There must be something broken with in the display manager while under root. But I'm not a real Linux "innereds" kind a guy. I also did try doing an install with an empty root password, then changing it after the OS was installed using "su", and that too failed.
Now it would appear to me that there is a failure to properly check a release for issues like this. I can't believe that someone in the Debian team has not run into this, considering it has been going on for many months now. Ya I know, "it free", my lost time is not your problem, but come on.... take a little pride and ownership in what you do.

Additional note: I just tried the suggestion above, modifying the GRUB boot sequence with init=/bin/bash, then remounting file system, issuing a passwd cmd... that gives me the following error message: "Authentication token manipulation error", and the password is NOT changed. So there appears to be a fundamental problem in the password handling somewhere.

SOLVED!!!
Here is the solution https://economictheoryblog.com/2015/11/ ... -debian-8/ Thanks AD for your help on this. It seems those in control of such things, limiting ROOT access to save us from ourselves, have nothing better to do. You "Holier than Thou" types need to get a grip. There are many of us "That do know what we are doing" and resent your impositions. Enough Said.
jmulchin
 
Posts: 1
Joined: 2017-10-05 18:50


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable