Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 619474

Summary: app-admin/sudo-1.8.18_p1 overwrites existing /etc/sudoers
Product: Gentoo Linux Reporter: Jonas Stein <jstein>
Component: Current packagesAssignee: Portage team <dev-portage>
Status: RESOLVED OBSOLETE    
Severity: major CC: alexanderyt, base-system, josef64, jstein, tsmksubc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=247776
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Jonas Stein gentoo-dev 2017-05-23 18:58:37 UTC
after a gcc update I used 
emerge -eav system
emerge -eav world
to fix some problems.

My /etc/sudoers got overwritten by the default file at the same time as the logfile for app-admin/sudo-1.8.18_p1 was created.

$ portageq envvar CONFIG_PROTECT CONFIG_PROTECT_MASK
/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf
/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo

Anything else we can test?
Comment 1 Jonas Stein gentoo-dev 2017-05-23 19:04:08 UTC
Created attachment 473978 [details]
emerge --info
Comment 2 Zac Medico gentoo-dev 2017-05-23 19:15:11 UTC
If you had previously installed app-admin/sudo with a binary package created with `quickpkg --include-config=y`, then that would do it if FEATURES=config-protect-if-modified is enabled (the default).
Comment 3 Jonas Stein gentoo-dev 2017-05-26 19:57:58 UTC
I had never "installed app-admin/sudo with a binary package created with `quickpkg --include-config=y`" nor has Josef. Best, JS.
Comment 4 wolfgang 2020-12-13 02:19:28 UTC
Could not reproduce this bug with =app-admin/sudo-1.9.3_p1

Rather, I got the following message, and was able to use etc-update as usual to deal with the change:

 * IMPORTANT: config file '/etc/sudoers' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

This bug seems like it should be closed.