wm: doc

ref: d761fbfc7d8a1ce10f244bdedd6cff39be10ca3f
dir: /newuser.ms/

View raw version
To create a new user (replace $username):

; echo 'newuser $username' >> /srv/cwfs.cmd

To put $username in group sys:

; echo 'newuser sys +$username' >> /srv/cwfs.cmd

To put $username in group adm:

; echo 'newuser adm +$username' >> /srv/cwfs.cmd

Or for interactive usage:

; con -Cl /srv/cwfs.cmd
newuser $username

To put $username in groups sys and adm:

newuser sys +$username

newuser adm +$username

Type ctrl+\ to escape, then quit.

Verify the new user was created:

; grep $username /adm/users

After creating the user, you will want to set the new user's password:

; auth/keyfs
; auth/changeuser $username

To change the default user on bootup:

; 9fs 9fat
; echo 'user='^$username^'
' >> /n/9fat/plan9.ini

After logging in to the new user:

; /sys/lib/newuser