Freebsd adduser ERROR - User Disappeared During Update

While creating a new user account on one my servers running FreeBSD 12, I encountered the following error: root@nas2:~ # adduser Username: devops Full name: Ansible Operator Uid (Leave empty for default): Login group [devops]: Login group is devops. Invite devops into other groups? []: Login class [default]: Shell (sh csh tcsh nologin) [sh]: Home directory [/home/devops]: Home directory permissions (Leave empty for default): Use password-based authentication? [yes]: no Lock out the account after creation? [no]: no Username : devops Password : <disabled> Full Name : Ansible Operator Uid : 1002 Class : Groups : devops Home : /home/devops Home Mode : Shell : /bin/sh Locked : no OK? (yes/no): yes pw: user 'devops' disappeared during update adduser: ERROR: There was an error adding user (devops). Add another user? (yes/no): no Goodbye! According to a discussion on a FreeBSD forum, the problem could have caused by the databases being out of sync. ...

November 7, 2020 · 1 min · 184 words · kenno

Changing a User&#8217;s Password on FreeBSD

Before getting into how to change a user’s password on FreeBSD, let’s have a quick revision on how that can be done on a Linux system. As a user we can change the password by typing: $ passwd Changing password for user kenno. Changing password for kenno. Current password: ... Or with a root account, we can change/set the password for another user: # passwd kenno Changing password for user kenno. New password: ... How about a FreeBSD? It should be the same way as how it’s done on Linux right? Right? Well, not quite. ...

January 10, 2017 · 1 min · 148 words · kenno