Bug 627605

Summary: insufficient privilege to check service status
Product: [Fedora] Fedora Reporter: Alessandro Lenzen <com.redhat.bugzilla>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 13CC: ikent, jmoyer
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: autofs-5.0.5-28.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-08 02:20:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
removes check if run as root
none
don't check for root if $1 is status
none
Patch - fix init script status privilege error none

Description Alessandro Lenzen 2010-08-26 14:01:05 UTC
Created attachment 441220 [details]
removes check if run as root

Description of problem:

Root privilege required to check service status

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

autofs-5.0.5-26.fc13.i686

How reproducible:
always

Steps to Reproduce:
1. $ /etc/init.d/autofs status
  
Actual results:
insufficient privilege to change service status

Expected results:
automount (PID  13163) ...

Additional info:

Comment 1 Jeff Moyer 2010-08-26 14:16:48 UTC
Created attachment 441224 [details]
don't check for root if $1 is status

I've not tested this, but it's a better fix that what was proposed.

Comment 2 Alessandro Lenzen 2010-08-26 16:18:11 UTC
Test, works. Thank you.

Comment 3 Jeff Moyer 2010-08-26 18:46:06 UTC
Can't close the bug out until it's fixed in the distro.  ;-)  Thanks for the testing!

Comment 4 Ian Kent 2010-08-27 03:19:20 UTC
Created attachment 441382 [details]
Patch - fix init script status privilege error

Jeff's patch with an added description.

Comment 5 Fedora Update System 2010-08-27 03:30:26 UTC
autofs-5.0.5-28.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/autofs-5.0.5-28.fc13

Comment 6 Fedora Update System 2010-08-27 04:10:51 UTC
autofs-5.0.5-31.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/autofs-5.0.5-31.fc14

Comment 7 Fedora Update System 2010-08-27 06:52:50 UTC
autofs-5.0.5-28.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update autofs'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/autofs-5.0.5-28.fc13

Comment 8 Fedora Update System 2010-09-08 02:20:30 UTC
autofs-5.0.5-28.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-09-08 04:32:58 UTC
autofs-5.0.5-31.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.