Bug 867332

Summary: /usr/sbin/groupmems is not setuid root
Product: Red Hat Enterprise Linux 6 Reporter: Alain D D Williams <addw>
Component: man-pages-overridesAssignee: Peter Schiffer <pschiffe>
Status: CLOSED ERRATA QA Contact: Iveta Wiedermann <isenfeld>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3CC: isenfeld, ovasik, pschiffe
Target Milestone: rcKeywords: ManPageChange, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: groupmems(8) manual page was missing information about setuid right of groupmems binary Consequence: incomplete documentation Fix: clarify setuid right of groupmems binary in the groupmems(8) manual page Result: complete documentation
Story Points: ---
Clone Of:
: 878467 1292820 (view as bug list) Environment:
Last Closed: 2013-02-21 10:54:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 878467, 886216    
Description Flags
Manual page patch none

Description Alain D D Williams 2012-10-17 10:35:22 UTC
Description of problem:

Using groupmems a user should be able to change who is a member of his primary group. For this it needs to be setuid root.

The man page says ''The groupmems executable should be in mode 2770 as user root and in group groups.''

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

RedHat enterprise 6 - groupmems was not in RHE5.

Either it should be made setuid root (and its SElinux label changed to system_u:object_r:groupadd_exec_t:s0) or the manual page changed to say that it is only for use by root.

Comment 1 Tomas Mraz 2012-10-17 10:42:43 UTC
As this seriously affects system security policies we cannot change the permissions in already released major version of Red Hat Enterprise Linux. We could change it in the next major version though.

Of course changing the manpage in RHEL6 is possible.

Comment 4 Alain D D Williams 2012-11-19 17:23:26 UTC
If you do change the man page, please add a comment that it will be fixed (ie made suid root) in RHEL7. Ie accept that you are different from what it should be but not for ever --- try to prevent divergence between the different distros.

People need to be warned if it is likely to change in the future.

Comment 5 Tomas Mraz 2012-11-19 18:48:54 UTC
We still did not decide whether we want the groupmems to be setuid in Red Hat Enterprise Linux 7.

Comment 6 Tomas Mraz 2012-11-19 19:04:02 UTC
Created attachment 647951 [details]
Manual page patch

The manual page patch for RHEL-6.4 update.

Comment 13 errata-xmlrpc 2013-02-21 10:54:31 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.