Bug 462054
Summary: | Useradd errors reported when installing packages | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Simon Andrews <simon.andrews> |
Component: | shadow-utils | Assignee: | Peter Vrabec <pvrabec> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | crisss, tmraz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-09-16 08:38:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Simon Andrews
2008-09-12 08:41:38 UTC
Having looked at this a bit more, it seems that this error appears in the secure log when rpm tries to install a user which already exists. Trying the same command from the spec file on the command line gets me: useradd: user backuppc exists ..which makes sense, but /var/log/secure still says: useradd[25979]: failed adding user `backuppc', data deleted I'm not sure what the 'data deleted' means, or if this is a new message, but it's being reported in logwatch reports when I don't remember seeing it before. The original report is incorrect in that it says that the user is not created. It seems that this actually happens when the useradd fails because the user already exists. # useradd foo # useradd foo useradd: user foo exists # tail /var/log/secure .... Sep 16 10:18:41 xen80 useradd[2023]: new group: name=foo, GID=501 Sep 16 10:18:41 xen80 useradd[2023]: new user: name=foo, UID=501, GID=501, home=/home/foo, shell=/bin/bash Sep 16 10:18:46 xen80 useradd[2029]: failed adding user `foo', data deleted # rpm -q shadow-utils shadow-utils-4.1.1-4.fc9.i386 Simon, it seems this behaviour is common for shadow-utils for longer time. (at least shadow-utils-4.0.3). When something goes wrong useradd always just generate this syslog message. Note, it prints "useradd: user foo exists" on command line. If you think this should be changed, please start some discussion on fedora-devel or shadow-utils upstream. It should be some consensus about it before we could start changing it. i fix this error doing this: 1- mv /sbin/useradd /sbin/useradd.bin 2- create an script called '/sbin/useradd' whith the next code: #!/bin/bash /sbin/useradd.bin $@ exit 0 |