useradd reports consistent password files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nexenta Operating System |
New
|
High
|
Unassigned |
Bug Description
I built mysql, and tried to install it..
dpkg -i mysql-server_
This brings up a text based interface asking for a root password and then fails with
UX: /usr/sbin/useradd: ERROR: Inconsistent password files. See pwconv(1M).
adduser: `/usr/sbin/useradd -d /var/lib/mysql -g mysql -s /bin/false -u 100 mysql' returned error code 5. Exiting.
dpkg: error processing mysql-server-
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
mysql-
A similar report for useradd was reported before at https:/
what would the workaround be for now?
Note: the original reporter indicated the bug was in package 'mysql'; however, that package was not published in Nexenta Operating System.
Additionally, running
pwconv followed by apt-get -f install fixes the issue. So looks like theres something wrong with the way /etc/passwd or /etc/shadow is formatted