Skip to content

Default user changed without warning #290

@rodrigorc

Description

@rodrigorc

Hi!
I recently upgraded from sudo 1.9.13.p3 to 1.9.14.p1 in my ArchLinux system, and the default user for sudo changed automatically from root to my regular user rodrigo. That is when I run sudo -i it used to start a root shell, now it starts a rodrigo shell, with is quite useless.
The obvious workaround -after I panicked and though I had a rootkit and recovered, is to run sudo -i -u root.

I've checked my customized configuration and it all comes down to this custom rule in my sudoers.d subdir:

ALL ALL=(:mygroup) NOPASSWD: ALL

I changed it to:

ALL ALL=(ALL:mygroup) NOPASSWD: ALL

and everything is back to normal. So no real harm done.

I'm opening this issue to the benefit of other that may encounter this. Is it a bug? A fix of a pre-existing bug? Or a subtle change in the intended behavior? I checked the change-logs and saw nothing about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions