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 598444 - net-snmpd fails and dies when configured to run as user
Summary: net-snmpd fails and dies when configured to run as user
Keywords:
Status: CLOSED DUPLICATE of bug 578405
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: net-snmp
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-01 12:20 UTC by bugreports2005
Modified: 2010-06-01 12:35 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-01 12:24:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description bugreports2005 2010-06-01 12:20:32 UTC
Description of problem:

snmpd fails and dies trying to downgrade its privileges, when ran with the -u and -g options.

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

net-snmp-5.5-12.el6.i686 from RHEL6 Beta 1.

How reproducible:

Always.

Steps to Reproduce:
1. Open /etc/sysconfig/snmpd and set something like this:
   OPTIONS="-LS0-6d -Lf /dev/null -p /var/run/snmpd.pid -u daemon -g daemon"
2. service snmpd restart
3. service snmpd status

Actual results:

snmpd dead but pid file exists
a log entry is made saying "initgroups failed: Operation not permitted"

Expected results:

snmpd running as user "daemon".

Additional info:

I understand that snmpd tries to change the group after having already changed the uid and therefore having lost the privilege to do so. Upstream has fixed this by changing the group first and then the uid (SVN revision 18452).

Comment 1 Jan Safranek 2010-06-01 12:24:25 UTC

*** This bug has been marked as a duplicate of bug 578405 ***

Comment 2 Jan Safranek 2010-06-01 12:35:13 UTC
Thanks for the report! It's good to see someone actually tests the beta and reports problems... even if this one was caught by our QA guys.


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