Topic: Creating a user in NetBSD (for n00bs)
Some UNIX's have a nice script to create new users on the system - this doesn't exist on NetBSD as it's relatively easy to create a user; as I am going to show you.
In this guide, we are going to create a user called "wintellect" who will have su ability.
First we create a default group for our user. It is customary to create a group with the same name as the user themselves:
# groupadd wintellect
That's it, your group is created!
Next we create the user:
# useradd -G wheel -g wintellect -m -s /bin/ksh wintellect
Although this may look complicated, it's quite easy:
-G wheel = any additional groups the user is to be part of. wheel group allows su ability
-g wintellect = the users default group, we are using the group we already created above
-m = create the home directory
-s /bin/ksh = the shell the user will have, this can be any shell in /etc/shells
wintellect = the final argument is the users name
Finally, we set the users password:
# passwd wintellect Changing local password for wintellect. New password: Retype new password:
-- Copyright BSDnexus