Project

General

Profile

action #120019

[opensuse] Test enhancement: sudo: test shipped default configuration

Added by dimstar 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2022-11-07
Due date:
% Done:

100%

Estimated time:
Difficulty:

Description

openSUSE Tumbleweed snapshot 20221103 just had a severe fallout as the sudo default configuration was changed to no longer ask for the root password, but rather for the user password. This though expects the user to be authorized by some means, usually via the wheel group or explicitly added to the sudoers file

Users that never amended their sudoers config were basically locked out from using 'sudo' simply based on a packaging change - see http://bugzilla.opensuse.org/show_bug.cgi?id=1205094

We should extend the sudo tests to ensure we test the default config as well.
The current sudo test as first step configures sudoers to get to a known state, and tests based on this only.
The rest of openQA never tripped over the changed sudo config as even assert_script_sudo internally uses su -c, and not actually sudo

History

#1 Updated by maritawerner 3 months ago

JERiveraMoya, please advice, is that for the yast team or for the core team?

#2 Updated by favogt 3 months ago

  • Assignee set to favogt
  • % Done changed from 0 to 80

#3 Updated by szarate 3 months ago

  • Category set to Bugs in existing tests

maritawerner wrote:

JERiveraMoya, please advice, is that for the yast team or for the core team?

Its core's but Fabian already provided a PR

#4 Updated by szarate 3 months ago

  • Subject changed from Test enhancement: sudo: test shipped default configuration to [opensuse] Test enhancement: sudo: test shipped default configuration

#5 Updated by favogt 2 months ago

  • Status changed from New to Resolved
  • % Done changed from 80 to 100

PR (and a fix by mloviska) got merged.

Also available in: Atom PDF