Project

General

Profile

Actions

action #120019

closed

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

Added by dimstar over 1 year ago. Updated over 1 year 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

Actions #1

Updated by maritawerner over 1 year ago

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

Actions #2

Updated by favogt over 1 year ago

  • Assignee set to favogt
  • % Done changed from 0 to 80
Actions #3

Updated by szarate over 1 year 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

Actions #4

Updated by szarate over 1 year ago

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

Updated by favogt over 1 year ago

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

PR (and a fix by @mloviska) got merged.

Actions

Also available in: Atom PDF