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 817412 - there is no permission/privilege for modifying automount keys
Summary: there is no permission/privilege for modifying automount keys
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-29 20:20 UTC by Dmitri Pal
Modified: 2013-02-21 09:12 UTC (History)
2 users (show)

Fixed In Version: ipa-3.0.0-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 09:12:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0528 0 normal SHIPPED_LIVE Low: ipa security, bug fix and enhancement update 2013-02-21 08:22:21 UTC

Description Dmitri Pal 2012-04-29 20:20:50 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/2687

There is no way to delegation modifying an existing automount key. The automountinformation at least needs to be changeable, if not the mount point too.

Comment 1 RHEL Program Management 2012-07-10 06:22:08 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 2 RHEL Program Management 2012-07-10 23:27:36 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 3 Rob Crittenden 2012-07-11 18:16:57 UTC
Fixed upstream

master: 4760c15cb2c8692b0e258ef62234aa18ab5fc193

An easy way to test this is to add a user to the IT Specialist role and try to modify an existing automount key. In this example we'll add a new one then modify it.

$ kinit someuser
$ ipa automountmap-add-indirect default auto.share --mount=/share
$ ipa automountkey-add default auto.share --key=key --info=something
$ ipa automountkey-mod default auto.share --key=key --newinfo=new

Comment 6 Namita Soman 2013-01-14 14:43:46 UTC
Verified using ipa-server-3.0.0-20.el6.x86_64

# ipa user-add abc
First name: abc
Last name: abc
----------------
Added user "abc"
----------------
  User login: abc
  First name: abc
  Last name: abc
  Full name: abc abc
  Display name: abc abc
  Initials: aa
  Home directory: /home/abc
  GECOS field: abc abc
  Login shell: /bin/sh
  Kerberos principal: abc
  Email address: abc
  UID: 976200003
  GID: 976200003
  Password: False
  Kerberos keys available: False

# ipa passwd abc
New Password: 
Enter New Password again to verify: 
---------------------------------------
Changed password for "abc"
---------------------------------------



# ipa role-add-member "IT Specialist" --users=abc
  Role name: IT Specialist
  Description: IT Specialist
  Member users: abc
-------------------------
Number of members added 1
-------------------------


# kinit abc
Password for abc: 
Password expired.  You must change it now.
Enter new password: 
Enter it again: 

# ipa automountmap-add-indirect default auto.share --mount=/share
--------------------------------
Added automount map "auto.share"
--------------------------------
  Map: auto.share

# ipa automountkey-add default auto.share --key=key --info=something
-------------------------
Added automount key "key"
-------------------------
  Key: key
  Mount information: something

# ipa automountkey-mod default auto.share --key=key --newinfo=new
----------------------------
Modified automount key "key"
----------------------------
  Key: key
  Mount information: new

Negative test...tried using a user who doesn't have the role of "IT Specialist":

# ipa user-add one
First name: one
Last name: one
----------------
Added user "one"
----------------
  User login: one
  First name: one
  Last name: one
  Full name: one one
  Display name: one one
  Initials: oo
  Home directory: /home/one
  GECOS field: one one
  Login shell: /bin/sh
  Kerberos principal: one
  Email address: one
  UID: 976200004
  GID: 976200004
  Password: False
  Kerberos keys available: False

# ipa passwd one
New Password: 
Enter New Password again to verify: 
---------------------------------------
Changed password for "one"
---------------------------------------

# kinit one
Password for one: 
Password expired.  You must change it now.
Enter new password: 
Enter it again: 

# ipa automountmap-add-indirect default auto.share --mount=/share
ipa: ERROR: Insufficient access: Insufficient 'add' privilege to add the entry 'automountmapname=auto.share,cn=default,cn=automount,dc=testrelm,dc=com'.

Comment 8 errata-xmlrpc 2013-02-21 09:12:14 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/RHSA-2013-0528.html


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