wm: doc

ref: 61864557978b570d2364b36282b534c20d50bf46
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

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