Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1215400 - default /etc/sudoers file error
default /etc/sudoers file error
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sudo (Show other bugs)
7.1
All Linux
unspecified Severity low
: rc
: ---
Assigned To: Daniel Kopeček
Dalibor Pospíšil
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-26 07:00 EDT by Sean O'Keeffe
Modified: 2015-11-19 07:58 EST (History)
4 users (show)

See Also:
Fixed In Version: sudo-1.8.6p7-14.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-19 07:58:43 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
proposed patch (598 bytes, patch)
2015-07-06 06:30 EDT, Daniel Kopeček
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2424 normal SHIPPED_LIVE sudo bug fix and enhancement update 2015-11-19 06:21:57 EST

  None (edit)
Description Sean O'Keeffe 2015-04-26 07:00:08 EDT
Description of problem:

RHEL7 uses systemd, /etc/sudoers should be updated to reflect that

The default /etc/sudoers file in RHEL7 has the line:
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig 

It should be:
# Cmnd_Alias SERVICES = /usr/bin/systemctl enable, /usr/bin/systemctl disable, /usr/bin/systemctl start, /usr/bin/systemctl stop, /usr/bin/systemctl status, /usr/bin/systemctl reload

potentially others as well...

Version-Release number of selected component (if applicable):
ALL RHEL7

How reproducible:
 Everytime

Steps to Reproduce:
1. install RHEL7
2. less /etc/sudoers
3.

Actual results:
default SERVICES alias doesn't include systemctl commans

Expected results:
default SERVICES alias should include systemctl commands 

Additional info:
Comment 2 Daniel Kopeček 2015-07-06 06:30:43 EDT
Created attachment 1048766 [details]
proposed patch
Comment 5 errata-xmlrpc 2015-11-19 07:58:43 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2424.html

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