Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Aug 2014 16:14:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 192528] New: pwd_mkdb fails if /etc/shells contains duplicates
Message-ID:  <bug-192528-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192528

            Bug ID: 192528
           Summary: pwd_mkdb fails if /etc/shells contains duplicates
           Product: Base System
           Version: 10.0-RELEASE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: david.r.bliss@gmail.com

Created attachment 145573
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145573&action=edit
/etc/shells with duplicate entries

My FreeBSD 10 system stopped being able to add new users. The 'adduser' command
would fail with "User 'username' disappeared during update". This was causing
me much grief because service users required by packages would not be created
which would prevent the associated service from starting.

The cause was that the command "pwd_mkdb -p /etc/master.passwd" was aborting.
The abort is apparently caused by duplicate entries in /etc/shells. My
/etc/shells file contained many duplicates (attached).

I removed all duplicates, and then the "pwd_mkdb" command was able to complete
without aborting.

I guess there are two problems here:

1) /etc/shells is populated with duplicates. I don't know what process did
this.
2) pwd_mkdb fails if there are duplicates.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192528-8>