this assumes you are using hjfs in a cpu setup (ie with a fileserver
and auth). if you are using cwfs, you should be able to just replace
/srv/hjfs.cmd
with /srv/cwfs.cmd
for most of it.
creating accounts ¶
echo newuser bob >> /srv/hjfs.cmd
will create a user named bob
use auth/keyfs
to mount the authentication database, then set a
password and enable the account
auth/keyfs auth/changeuser bob auth/enable bob
: mkf recommends filling in the email-related fields, as some programs use them
adding a user to a group ¶
echo newuser upas +bob >> /srv/hjfs.cmd
will add bob
to the upas
group, which allows mail. the adm
and
sys
groups allow adding users and accessing system files
respectively. there is also cron
for allowing recurring tasks.
renaming users ¶
echo newuser bob jane >> /srv/hjfs.cmd
to rename bob
to jane
. you will also need to set a new password
for them in the auth server.
auth/changeuser jane
setup defaults ¶
run /sys/lib/newuser
as the new user to get the default profile and
stuff in your home directory