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

 

 

 

New Debian 9. root disabled and user not in sudo! What the?!

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
techay
Posts: 11
Joined: 2017-06-21 15:40

New Debian 9. root disabled and user not in sudo! What the?!

#1 Post by techay »

Debian 9.0.1.

Very strange issue and I have no idea why no-one else is experiencing this madness. So, I set up my root and user account during installation as per (I have umpteen *NIX systems here!) and went to do some command line stuff just to be greeted by 'not in sudoers file' ..thought fine, I'll just add myself to that.. tried su - nope! Apparently 'su: Authentication failure'. I can bloody well tell you that there's no issue with the password cause it's the damn same password as the user - I always keep the same during the install process!

So yeah, looks like the root account has been disabled. What is this madness? If you are going to disable the root account, at least add my user to the sudo group or I'm stuck like I am now basically locked out my system. I have an encrypted install so it's not easy just remounting the system and going in as root to change things. tbh, I don't have the time nor patience. I'm thus considering just re-installing Debian 9 and giving up in favour of LMDE which I've been using for years.

Anyway, apologies for the tone of this but seriously - what is this nonsense.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: New Debian 9. root disabled and user not in sudo! What t

#2 Post by arochester »

By default Debian does not use sudo. To become Root just input: su
It will ask for your Root password. You are then Root and can input commands.

You can add sudo if you want to. Look at e.g. https://linuxpanda.wordpress.com/2016/1 ... n-stretch/
Scroll down to Grant Sudo Access (Optional)

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#3 Post by techay »

Fair enough, but even su doesn't work as said. p.s. cheers for responding

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: New Debian 9. root disabled and user not in sudo! What t

#4 Post by Lysander »

You seem perturbed. Arochester answered the point, but for a video walkthrough, use this which I refer to after a new install

https://www.youtube.com/watch?v=2wklBR6zobs

EDIT: try this?

https://askubuntu.com/questions/509074/ ... -privilege
Last edited by Lysander on 2017-06-21 16:15, edited 1 time in total.

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: New Debian 9. root disabled and user not in sudo! What t

#5 Post by Wheelerof4te »

It would seem Stretch had been released well before it's time. So many users are complaining, first live-images can't install, then freezes and problems with booting; now this. Maybe it's better for everyone to wait a month and install after a point release.

For your solution, next time try using different passwords. It is both safer and it probably won't conflict.

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#6 Post by techay »

Thanks, still I don't think you are seeing my point here

sudo IS infact installed by default - this is why I was going to add myself to the group. So that information was not correct (the tutorial was also incorrect because why install sudo when it IS already installed??)

$ su
Password:
su: Authentication failure

Hopefully this is much clearer. I 100% know that the password is correct, it's the same password I used to log my user in AND is the SAME password as root.

video tutorials do not address this issue. This is unique to 9.0.1. I have an 8.0 web server online I just put up 3 weeks ago!

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#7 Post by techay »

Wheelerof4te wrote:It would seem Stretch had been released well before it's time. So many users are complaining, first live-images can't install, then freezes and problems with booting; now this. Maybe it's better for everyone to wait a month and install after a point release.

For your solution, next time try using different passwords. It is both safer and it probably won't conflict.
Yes, was having all of those issues too. But this one takes the biscuit.

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: New Debian 9. root disabled and user not in sudo! What t

#8 Post by Lysander »

techay wrote:This is unique to 9.0.1.
I don't think it is? If I Google your error I get loads of results.

In fact, there is a topic for it here on this very forum

http://forums.debian.net/viewtopic.php?f=5&t=67583

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#9 Post by techay »

Lysander wrote:
techay wrote:This is unique to 9.0.1.
I don't think it is? If I Google your error I get loads of results.

In fact, there is a topic for it here on this very forum

http://forums.debian.net/viewtopic.php?f=5&t=67583

I'm banging my head against a brick wall here..

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: New Debian 9. root disabled and user not in sudo! What t

#10 Post by Wheelerof4te »

Have you checked the wiki page?

https://wiki.debian.org/sudo

Could be something there that you overlooked.

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: New Debian 9. root disabled and user not in sudo! What t

#11 Post by Lysander »

techay wrote:
Lysander wrote:
techay wrote:This is unique to 9.0.1.
I don't think it is? If I Google your error I get loads of results.

In fact, there is a topic for it here on this very forum

http://forums.debian.net/viewtopic.php?f=5&t=67583

I'm banging my head against a brick wall here..
I don't understand then. There appears to be a lot of evidence of this issue. I would recommend Googling around, reading up and trying things out. Also, this person seems to have experienced exactly the same issue as you.... several years ago. I would recommend looking at some of the information out there first.

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#12 Post by techay »

Okay.

I have reinstalled with the same info, i.e same passwords etc etc..

john@pc:~$ su
Password:
su: Authentication failure

Same damn issue. Logging in as regular user works, obviously locked out of making changes.

I'm going to install and use a different password for the user account as to what I will set the root account now.

So far, I'm not happy with this.

Will report back soon!

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#13 Post by techay »

My third attempt - also a disaster.

I set up different root password to the user password

$ su
Password:
su: Authentication failure

What the hell is wrong with this damn system.

p.s. I'm using Debian 9.0.1 / XFCE / AMD64

I even checked verified the iso, rewrote it with DD.

4th try, going to remove the root password as states if you dont enter a password then it will require the user to use sudo!
If this doesn't work - Debian will be getting shoved where the sun don't shine - so if I were a developer, I'd be running for the hills if this doesn't work!

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#14 Post by techay »

4th time lucky.....

The workaround to avoid this fiasco is to NOT enter a root password i.e. leave these fields empty!

After this it will make you set up a regular user. When the installation has finished and you log in, sudo will now work automatically without needing to add yourself to the sudoers group or anything..

$ sudo su
[sudo] password for simon:
root@mylaptop:/home/simon#


Debian devs, I hope you were reading this thread - you NEED to fix this crap it's unacceptable from an OS like Debian. People stand by Debian being of a bloody good quality and unless you want the reputation tarnished by crap like this you gotta not release till the OS is ready!

kopper
Posts: 138
Joined: 2016-09-30 14:30

Re: New Debian 9. root disabled and user not in sudo! What t

#15 Post by kopper »

I don't want to give a stupid advise but... Are you sure you are using the same keyboard layout as the installer was using? I've had some issues in the past that for reason or another, my native (Finnish) keyboard is not properly used by the installer even though I've selected it for use. Might want to check on that, especially if you've already tried reinstall once.
Debian 10.2 Stable with i3
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#16 Post by techay »

kopper wrote:I don't want to give a stupid advise but... Are you sure you are using the same keyboard layout as the installer was using? I've had some issues in the past that for reason or another, my native (Finnish) keyboard is not properly used by the installer even though I've selected it for use. Might want to check on that, especially if you've already tried reinstall once.
It's a fair question if you have not read anything I have previously mentioned.

This bug is reproducible, follow the steps I have taken with the Debian 9.0.1 / AMD64 / XFCE

techay
Posts: 11
Joined: 2017-06-21 15:40

Re: New Debian 9. root disabled and user not in sudo! What t

#17 Post by techay »

I am NOT going to mark this as solved - not until this bug still exists on the latest OS.

4 installations to get it working is ******* unacceptable.

And to the admin who blocked my other forum thread which was to highlight the fix for this bug - stop being defensive, suck it up and et over yourself.

Goodbye

User avatar
HuangLao
Posts: 485
Joined: 2015-01-27 01:31
Been thanked: 1 time

Re: New Debian 9. root disabled and user not in sudo! What t

#18 Post by HuangLao »

:| is this the future of Debian forum posts as more *buntu users try Debian?

This person clearly messed up the install, which is evident from his OP and subsequent rant responses, then blames Debian dev's.
http://www.microhowto.info/howto/reset_ ... ution.html
https://unix.stackexchange.com/question ... t-password
https://wiki.archlinux.org/index.php/Change_Root

Image

Now its solved...PS this could also be the image of systemd development.... :lol:

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: New Debian 9. root disabled and user not in sudo! What t

#19 Post by dasein »

techay wrote:I have no idea why no-one else is experiencing this madness.
Cosmic Coincidence.
techay wrote:tbh, I don't have the time nor patience
And yet you seem to have ample time to whine. Localized temporal distortion, no doubt.

Image

Seventh
Posts: 44
Joined: 2017-04-01 10:13

Re: New Debian 9. root disabled and user not in sudo! What t

#20 Post by Seventh »

I believe it is safer to leave the root account disabled and just use command

Code: Select all

sudo -i
if you want root access from the user.

Locked