Now, I'll show you how to create your own user and group account. The best
way to learn how to do this is to add a new user to the system manually.
To begin, first make sure that your EDITOR environment variable is set to your
favorite text editor:
# echo $EDITOR
vim
If it isn't, you can set EDITOR by typing something like:
# export EDITOR=/usr/bin/emacs
Now, type:
# vipw
You should now find yourself in your favorite text editor with the
/etc/passwd file loaded up on the screen. When modifying system
passwd and group files, it's very important to use the vipw and
vigr commands. They take extra precautions to ensure that your
critical passwd and group files are locked properly
so they don't become corrupted.