Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247776 - app-admin/sudo-1.6.9_p17 update overwrites sudoers file
Summary: app-admin/sudo-1.6.9_p17 update overwrites sudoers file
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 210077 216231
  Show dependency tree
Reported: 2008-11-20 15:45 UTC by bart9h
Modified: 2017-05-23 18:58 UTC (History)
0 users

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

emerge --info (emerge--info.txt,2.97 KB, text/plain)
2008-11-20 23:49 UTC, bart9h

Note You need to log in before you can comment on or make changes to this bug.
Description bart9h 2008-11-20 15:45:53 UTC
After a "emerge world" that upgraded sudo to 1.6.9_p17, I can't sudo anymore.
Looks like the /etc/sudoers file has been overwritten, and my configuration was lost.  sudo says I'm not even in the sudoers file.

(sad part is I don't remember the root password :)

Reproducible: Didn't try

Steps to Reproduce:
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-20 16:09:11 UTC
Hmm I'm quite sure that it should be config protected. Zac, do you have any ideas whether something might cause this?
Comment 2 Zac Medico gentoo-dev 2008-11-20 17:54:40 UTC
I CONFIG_PROTECT_MASK had been configured to contain '/etc' then that would cause it. Please post emerge --info output (shows CONFIG_PROTECT and CONFIG_PROTECT_MASK settings).
Comment 3 bart9h 2008-11-20 23:49:52 UTC
Created attachment 172574 [details]
emerge --info
Comment 4 Zac Medico gentoo-dev 2008-11-21 01:40:41 UTC
(In reply to comment #3)
> Created an attachment (id=172574) [edit]
> emerge --info

See, CONFIG_PROTECT is empty. Maybe you have CONFIG_PROTECT="-*" set in make.conf or in your environment. That's bad.
Comment 5 Zac Medico gentoo-dev 2008-11-21 23:23:44 UTC
In svn r12022 I've added a warning message that emerge will show if CONFIG_PROTECT is empty for some reason.
Comment 6 bart9h 2008-11-21 23:45:18 UTC
This is weird:

$ emerge --info | grep CONFIG_PROTECT=
$ cat /etc/make.conf | grep CONFIG_PROTECT=
Comment 7 bart9h 2008-11-21 23:46:30 UTC
No, it's not.

I misunderstood it, sorry.
Comment 8 Zac Medico gentoo-dev 2008-11-22 05:56:39 UTC
The warning message is in 2.2_rc15.