Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619474 - app-admin/sudo-1.8.18_p1 overwrites existing /etc/sudoers
Summary: app-admin/sudo-1.8.18_p1 overwrites existing /etc/sudoers
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-23 18:58 UTC by Jonas Stein
Modified: 2020-01-04 09:50 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_--info.txt,5.41 KB, text/plain)
2017-05-23 19:04 UTC, Jonas Stein
Details

Note You need to log in before you can comment on or make changes to this bug.
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.