Bug 999562 - RFE: Consider moving sudo configuration to sudoers.d
Summary: RFE: Consider moving sudo configuration to sudoers.d
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Installation
Version: 2.0
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: spacewalk-rfe
TreeView+ depends on / blocked
 
Reported: 2013-08-21 14:55 UTC by Stanislav Hanzhin
Modified: 2020-03-10 10:15 UTC (History)
4 users (show)

Fixed In Version: spacewalk-config-2.7.2-1 spacewalk-setup-2.7.8-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-10 10:15:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Stanislav Hanzhin 2013-08-21 14:55:54 UTC
Editing /etc/sudoers from setup script confuses me, as we're tracking configurations with puppet and we try to keep /etc/sudoers clean.

Please, consider moving sudoers configuration of spacewalk to /etc/sudoers.d/

Comment 1 Tomas Lestach 2013-08-23 09:23:42 UTC
Yes, this is a valid request.
Just note RHEL5 does not support /etc/sudoers.d/ configuration ...

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.10 Beta (Tikanga)
# ll /etc/sudo* -d
-r--r----- 1 root root 4555 Aug 22 19:11 /etc/sudoers

Comment 2 Jan-Albert van Ree 2013-08-30 12:15:40 UTC
RHEL5 doesn't have it enabled, but with 1.7.2 (which is what RHEL5 currently uses) the '#include' directive is available. See http://www.sudo.ws/pipermail/sudo-announce/2009-July/000080.html

I'd like to see this RFE realised too.

Comment 3 Michael Mráka 2020-03-10 10:15:51 UTC
This RFE has been implemented in Spacewalk 2.7 by

commit 6e6699ff0d2ad9ceeff738b43ab4c0b55958d275
    move sudoers configuration to /etc/sudoers.d/spacewalk
    instead of editing system sudoers file


Note You need to log in before you can comment on or make changes to this bug.