| Summary: | useradd, usermod need /usr/sbin/semanage, but package doesn't require it | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Garrett Holmstrom <gholms> |
| Component: | shadow-utils | Assignee: | Peter Vrabec <pvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | arnold.x.wang, chad.schroeder, dominick.grift, dwalsh, niels.borne, pvrabec, rh-bugzilla, tmraz |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | shadow-utils-4.1.4.2-13.fc15 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-09 01:40:42 UTC | Type: | --- |
| 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: | 720870 | ||
|
Description
Garrett Holmstrom
2011-05-02 17:13:27 UTC
please solve the issue without adding a 'Requires: policycoreutils-python'... 'shadow-utils' has only a low set of dependencies atm which would change with the new requirement. '-Z' may be a neat feature but is not required for core functionality; I suggest to keep things as-is until soft-dependencies (Suggests:, Recommends:) are implemented in rpm/yum and add policycoreutils-python to the default set of packages in comps.xml instead. shadow-utils-4.1.4.2-12.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/shadow-utils-4.1.4.2-12.fc15 sorry, but I agree with Enrico. I don't want to extend dependencies. There are some changes that are relevant to this issue in shadow-utils-4.1.4.2-12.fc15 update: * userdel option to remove Linux login <-> SELinux login mapping * useradd special exit value if SELinux user mapping is invalid * usermod special exit value if SELinux user mapping is invalid shadow-utils-4.1.4.2-12.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. In regards to the updated shadow-utils package. After applying, when adding the xguest package, the package fails to install: + semanage user -a -S targeted -P xguest -R xguest_r xguest_u + useradd -c Guest -Z xguest_u xguest useradd: warning: the home directory already exists. Not copying any file from skel directory into it. Creating mailbox file: File exists /usr/sbin/semanage: Linux User xguest does not exist useradd: warning: the user name xguest to xguest_u SELinux user mapping failed. + semanage login -a -S targeted -s xguest_u xguest /usr/sbin/semanage: Linux User xguest does not exist + semanage login -m -S targeted -s xguest_u xguest /usr/sbin/semanage: Login mapping for xguest is not defined + exit 1 # useradd -c Dan1 -Z xguest_u dan1 useradd: warning: the home directory already exists. Not copying any file from skel directory into it. Creating mailbox file: File exists /usr/sbin/semanage: Linux User dan1 does not exist useradd: warning: the user name dan1 to xguest_u SELinux user mapping failed. It seems to get most of the way through but never actually adds the user dan1. shadow-utils-4.1.4.3-5.fc16.x86_64 Any updates/progress to report? Any updates/progress to report? fixed in: shadow-utils-4.1.4.3-8.fc16 shadow-utils-4.1.4.3-8.fc17 shadow-utils-4.1.4.2-13.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/shadow-utils-4.1.4.2-13.fc15 Package shadow-utils-4.1.4.2-13.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing shadow-utils-4.1.4.2-13.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/shadow-utils-4.1.4.2-13.fc15 then log in and leave karma (feedback). shadow-utils-4.1.4.2-13.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 720870 has been marked as a duplicate of this bug. *** Package shadow-utils-4.1.4.2-13.fc15 still does not fix the issue for me. rpm -q shadow-utils shadow-utils-4.1.4.2-13.fc15.x86_64 yum install xguest gave Error in PREIN scriptlet in rpm package *** Bug 742339 has been marked as a duplicate of this bug. *** |