Red Hat Bugzilla – Bug 160787
no user entry in /etc/passwd after useradd
Last modified: 2007-11-30 17:11:08 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4
Description of problem:
If a user is added via "useradd foo" a directory is created but there is no new entry line in /etc/passwd. Consequently "passwd foo" will fail with the error message that user foo does not exist.
The gui tool system-config-users does create the users correctly and passwords are also given correctly.
Tried to switch off selinux, first to permissive and the to disabled but this does not change anything.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. login as root
2. type useradd foo and then passwd foo
Actual Results: 1. get an error message that user foo does not exist
2. see that /home/foo was nevertheless created
Expected Results: the user should be created correctly.
I can't reproduce it.
# useradd foo
# cat /etc/passwd | grep foo
# rpm -q shadow-utils
Ok, now it works for me too, but I have installed a whole bunch of updates now.
On a fresh install it didn't work.