Bug 139172 - useradd: cannot rewrite shadow password file
Summary: useradd: cannot rewrite shadow password file
Alias: None
Product: Fedora
Classification: Fedora
Component: shadow-utils
Version: 3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Eido Inoue
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2004-11-13 16:22 UTC by John Florian
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2004-11-18 19:26:43 UTC

Attachments (Terms of Use)

Description John Florian 2004-11-13 16:22:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
Just performed a brand new install of FC3 with reiserfs.  Attempted to
create a non-root user during the first boot and there was no
indication of any error at that time.  Could not login via GDM as the
non-root user.  Went to VT1 console and logged in as root.  A grep on
/etc/passwd revealed the user did not get added, although I can see
that the home directory was created along with /var/spool/mail/ file.
 Repeated attempts using useradd all fail like thus:

[root@droopy ~]# useradd john
useradd: cannot rewrite password file
[root@droopy ~]# echo $?

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install FC3 with reiserfs
2. Try to create new user
3. Try to login as new user

Additional info:

/var/log/messages reports several entries like:

Nov 13 00:19:46 droopy kernel: ReiserFS: dm-0: warning: Invalid hash
for xattr (security.selinux) associated with [739 730906 0x0 SD]

Comment 1 Eido Inoue 2004-11-18 19:26:43 UTC
ReiserFS and SELinux do not mix, and we won't support this combo in
RHEL. You need to disable one or the other. If you must use ReiserFS,
boot with "selinux=0" bootparam.

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