Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222687 - Wrong protection on /etc/sudoers after package upgrade
Summary: Wrong protection on /etc/sudoers after package upgrade
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-18 17:20 UTC by Rabbe Fogelholm
Modified: 2009-06-21 17:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rabbe Fogelholm 2008-05-18 17:20:40 UTC
I have the app-admin/sudo package installed. Recently version 1.6.9_p13 was installed, as part of a weekly `emerge -avuND --world'.

Afterwards I became aware that I could no longer execute some commands via sudo. The message I got was 

sudo: /etc/sudoers is mode 0644, should be 0440

Having set the '0440' mode on /etc/sudoers things were back to normal.

My sudoers file is quite simple, just a single line site-specific line. Unfortunately I am not quite sure if I ran etc-update or cfg-update -u after the upgrade. In any case there were no warnings or messages about /etc/sudoers that I became aware of.

As you can see I am not 100% certain how to classify this issue. A bug in /etc/sudo, or a bug in portage, or me not doing the upgrade with enough care?
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-21 17:04:43 UTC
I really cannot seem to be able to reproduce the problem; please do reopen if the problem persists.
Comment 2 Rabbe Fogelholm 2009-06-21 17:26:37 UTC
I think it is safe to close this bug. I checked the machine where I am using sudo; it is now at sudo version 1.7.1-r1. From the emerge.log I can see that I have been at versions 1.6.9_p16, 1.6.9_p17, and 1.7.0. All of these versions have been problem-free for me.