Bugzilla – Bug 1215850
sudo no longer works after latest snapshot
Last modified: 2023-10-05 19:06:46 UTC
Overview: after upgrading to snapshot 20230929, the sudo command is failing and saying that the password is incorrect. Steps to Reproduce: 1. sudo transactional-update dup [sudo] password for user: Sorry, try again. Actual Results: sudo fails to log in Expected Results: sudo logs in successfully Other notes: su works Logging in using root works This is the default sudo config, which allows for any user in the default 'users' group can run sudo if they know the root password. I haven't modified any of the sudo configurations.
According your terminal output the user password is required and not the root one... [sudo] password for user:
Hi Hui, that is a good catch, my user password does login correctly. However, this is a change in functionality. If I roll back to a previous release, it asks for my root password. Also if I `sudo visudo`, it is set up as: ``` Defaults targetpw # ask for the password of the target user i.e. root ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'! ``` In this configuration, it should ask for the root password.
sudo is working just fine visudo is ignoring drop-in configurations, but Aeon has one, which removes targetpw for users in the wheel group and the user made by gnome-initial-setup is in the wheel group this report seems to confirm we can go ahead and lock/disable root on fresh installs now, as requested in https://bugzilla.opensuse.org/show_bug.cgi?id=1213159 Thanks!