Bug 867332 - /usr/sbin/groupmems is not setuid root
Summary: /usr/sbin/groupmems is not setuid root
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: man-pages-overrides
Version: 6.3
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Peter Schiffer
QA Contact: Iveta Wiedermann
Depends On:
Blocks: 878467 886216
TreeView+ depends on / blocked
Reported: 2012-10-17 10:35 UTC by Alain D D Williams
Modified: 2013-02-21 10:54 UTC (History)
3 users (show)

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
Clone Of:
: 878467 1292820 (view as bug list)
Last Closed: 2013-02-21 10:54:31 UTC
Target Upstream Version:

Attachments (Terms of Use)
Manual page patch (631 bytes, patch)
2012-11-19 19:04 UTC, Tomas Mraz
no flags Details | Diff

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0464 normal SHIPPED_LIVE man-pages-overrides bug fix update 2013-02-20 21:07:17 UTC

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.


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