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

Bug 247776

Summary: app-admin/sudo-1.6.9_p17 update overwrites sudoers file
Product: Gentoo Linux Reporter: bart9h <rodolfo.borges>
Component: Current packagesAssignee: Portage team <dev-portage>
Severity: critical Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 216231    
Attachments: emerge --info

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.