Bug 999562

Summary: RFE: Consider moving sudo configuration to sudoers.d
Product: [Community] Spacewalk Reporter: Stanislav Hanzhin <hanzhin.stas>
Component: InstallationAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: contact, cperry, javanree, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: spacewalk-config-2.7.2-1 spacewalk-setup-2.7.8-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-10 10:15:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 737830    

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