[Bug 192528] New: pwd_mkdb fails if /etc/shells contains duplicates
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Aug 9 16:14:56 UTC 2014
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 at FreeBSD.org
Reporter: david.r.bliss at 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.
More information about the freebsd-bugs
mailing list