Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 735313

Summary: lldpad init scripts , stopping with nonprivileged user
Product: Red Hat Enterprise Linux 6 Reporter: Petr Sklenar <psklenar>
Component: lldpadAssignee: Petr Šabata <psabata>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 6.2CC: azelinka, jscotka, ovasik, syeghiay
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lldpad-0.9.43-8.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 14:40:35 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:
Bug Depends On:    
Bug Blocks: 743047    
Attachments:
Description Flags
Check for root privileges before any action is taken none

Description Petr Sklenar 2011-09-02 09:36:27 UTC
Description of problem:
lldpad init scripts improvement

Version-Release number of selected component (if applicable):
lldpad-0.9.43-7.el6

How reproducible:
deterministic

Steps to Reproduce:
A. Insufficient rights, stopping service under nonprivileged user must fail (Expected 4, got 0)
0. petr is nonroot
1.
[petr@dell-pe-sc1435-02 ~]$ /etc/init.d/lldpad stop
[petr@dell-pe-sc1435-02 ~]$ echo $?
0
[petr@dell-pe-sc1435-02 ~]$ /etc/init.d/cups stop
[petr@dell-pe-sc1435-02 ~]$ echo $?
4


Actual results:
0

Expected results:
4

Additional info:

Comment 1 Petr Šabata 2011-09-05 12:32:40 UTC
Created attachment 521493 [details]
Check for root privileges before any action is taken

Comment 2 Petr Šabata 2011-09-05 12:33:13 UTC
Patch is ready; requesting devel_ack...

Comment 3 Petr Šabata 2011-09-07 07:13:19 UTC
*** Bug 735976 has been marked as a duplicate of this bug. ***

Comment 6 Petr Šabata 2011-09-15 11:47:57 UTC
Fixed in CVS, lldpad-0_9_43-8_el6.

Comment 9 errata-xmlrpc 2011-12-06 14:40:35 UTC
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.

http://rhn.redhat.com/errata/RHBA-2011-1604.html