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 1080844 - Cannot set up a Sudo Rule which can be executed as a External Group
Summary: Cannot set up a Sudo Rule which can be executed as a External Group
Keywords:
Status: CLOSED DUPLICATE of bug 1066572
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Martin Kosek
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-26 08:45 UTC by Martin Kosek
Modified: 2014-04-29 12:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-28 07:28:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Kosek 2014-03-26 08:45:36 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/4263

Ticket was cloned from Red Hat Bugzilla (product ''Red Hat Enterprise Linux 6''): [https://bugzilla.redhat.com/show_bug.cgi?id=1066572 Bug 1066572]

''Please note that this Bug is private and may not be accessible as it contains confidential Red Hat customer information.''

{{{
Description of problem:

In IdM, we  can not  set up a Sudo Rule which can be runned as a External
Group. Whereas we can set external users but can't set external groups.
}}}

I did few tests and this indeed does not work even though SSSD/sudo supports it:
{{{
I also test this feature and this is a gap on FreeIPA side. When I manually edited ou=sudoers and added a local group (vmusers), SSSD and sudo was able to process it:

$ id
uid=932000000(admin) gid=932000000(admins) groups=932000000(admins) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

$ sudo -l
User admin may run the following commands on this host:
    (tuser, %foo, %vmusers : wheel) /usr/bin/less

foo is FreeIPA group with "fbar" as a group member, vmusers is a local group with "mkosek" as a group member. I was able to run the SUDO command as all tuser, fbar and mkosek users:

$ sudo -u mkosek /usr/bin/less /etc/passwd
... reads the file
}}}

Comment 1 Martin Kosek 2014-03-28 07:28:09 UTC
Closing as duplicate of Bug 1081626 which is now also targeted at the same product version.

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

Comment 2 Martin Kosek 2014-04-29 12:11:01 UTC
Sorry, I closed it as a duplicate to wrong Bugzilla ID. The right one is Bug 1066572 - fixed.

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


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