Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrade, sudo suddenly shows lecture again #342

Closed
haarp opened this issue Dec 21, 2023 · 3 comments
Closed

After upgrade, sudo suddenly shows lecture again #342

haarp opened this issue Dec 21, 2023 · 3 comments

Comments

@haarp
Copy link

haarp commented Dec 21, 2023

Hello,

using sudo on Gentoo Linux. After upgrading from 1.9.14_p3 to 1.9.15_p2, sudo suddenly for the first time in a long time, shows the lecture when run.

I know this can be controlled with the lecture setting. The problem is the sudden appearance of the lecture. It made me wary, thinking I was on the wrong server, or somebody was MITMing my sudo prompt. This caused a thorough investigation of my security.

The lecture option is not defined in any config. My user does have a file in /var/db/sudo/lectured. After confirming the lecture again, there is now a file with my user ID in that dir.

Please don't change any defaults this way :)

Thanks!

@haarp
Copy link
Author

haarp commented Dec 21, 2023

Ah, finally tracked this down to commit 7363ad7. I guess that makes sense. Still, there should've been a migration to prevent admin panic :)

@millert
Copy link
Collaborator

millert commented Dec 21, 2023

This is mentioned both in the release notes and upgrade notes.

@millert millert closed this as completed Dec 21, 2023
millert added a commit that referenced this issue Dec 30, 2023
@haarp
Copy link
Author

haarp commented Jan 17, 2024

Whoops! So few projects bother to maintain release/upgrade notes that it didn't even cross my mind. I thought it was some kind of bug at first. Thanks for maintaining such notes tho!

I also see you added a migration now. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants