wm: doc

ref: d0a14a1a9a3eba92bc143f3d6bec3bc4d2a3cd84
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