Description of problem: When one invokes useradd or usermod with a -Z option the program calls /usr/sbin/semanage. That file is part of the policycoreutils-python package, but the shadow-utils package doesn't require it. Version-Release number of selected component (if applicable): shadow-utils-4.1.4.2-11.fc14.x86_64 How reproducible: Any time policycoreutils-python is not installed Steps to Reproduce: 1. /usr/sbin/useradd -Z user_u newuser Actual results: Failed to exec '/usr/sbin/semanage' useradd: warning: the user name newuser to user_u SELinux user mapping failed. Expected results: (no output)
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?
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. ***