Bug 1001316 - Location of yum is incorrect in /etc/sudoers
Summary: Location of yum is incorrect in /etc/sudoers
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: sudo
Version: 19
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Kopeček
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-26 21:13 UTC by Bryan Mason
Modified: 2013-08-26 21:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-26 21:16:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bryan Mason 2013-08-26 21:13:20 UTC
Description of problem:

    /etc/sudoers contains the line:

    # Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum

    However, in Fedora 19, yum is located in /bin

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

    sudo-1.8.6p7-1.fc19.x86_64
 
How reproducible:

    100%

Steps to Reproduce:

    1.  Add a line in sudoers to allow a user to run commands in the
        SOFTWARE alias.
    2. Log in as that user and try to run "sudo yum install ..."

Actual results:

    Sorry, user <user> is not allowed to execute '/bin/yum -y install ...'
    as root on computer.example.com

Expected results:

    The unprivileged user should be allowed to run yum as root using
    sudo.

Additional info:

    It looks like yum is now located in /bin/yum.

Comment 1 Bryan Mason 2013-08-26 21:16:58 UTC
Never mind.  I thought that was causing my inability to run yum, but it was something else.


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