FYI, this tips is for newbie like me who is still learn how to use FreeBSD or people who was forgot about managing they FreeBSD system
.
When u want to update user’s group after editing /etc/passwd or /etc/master.passwd, you don’t have to reboot your system.
For example, if you wanna change group for user chaidir into becoming wheel, edit /etc/passwd like this:
before
chaidir:*:1001:1001:chaidir:/home/chaidir:/bin/sh
after
chaidir:*:1001:0:chaidir:/home/chaidir:/bin/sh
Then after editing /etc/passwd, use this command :
pwd_mkdb /etc/master.passwd
or
pwd_mkdb /etc/passwd
pwd_mkdb is an utility to generate the password database. This utility can also be used for updating your password after changing user’s password (passwd).
I made here for forgetful person like me.. so, when i forget something, I will see this tutorial again.
chaidir.abadi
chaidir.a[at]gmail.com