UX: useradd: ERROR: Inconsistent password files
While using useradd command to add my user, I got this error:
UX: /usr/sbin/useradd: ERROR: Inconsistent password files. See pwconv(1M).
Logged in as root, I checked the no. of lines in /etc/passwd and /etc/shadow:
# cat /etc/shadow |wc -l
299
# cat /etc/passwd |wc -l
300
vi /etc/passwd
I saw that last line was a blank and removed the blank line.
Using useradd command worked now without issues.
While using useradd command to add my user, I got this error:
UX: /usr/sbin/useradd: ERROR: Inconsistent password files. See pwconv(1M).
Logged in as root, I checked the no. of lines in /etc/passwd and /etc/shadow:
# cat /etc/shadow |wc -l
299
# cat /etc/passwd |wc -l
300
vi /etc/passwd
I saw that last line was a blank and removed the blank line.
Using useradd command worked now without issues.
0 comments:
Post a Comment