#!/bin/rc # desc: choose password and cpu server option switch($1){ case checkdone if(~ $#password 1 || ~ $#ndbauthdom 1) pwsetup=done if not pwsetup=ready export pwsetup case go echo echo 'Setup Password' echo prompt -d no 'Configure as cpu/auth server with no gui?' no yes authservice=$rd export authservice switch($authservice){ case no prompt 'Secure password for remote access: ' password=$rd export password case yes echo 'Enter hostowner password info for nvram machine key.' echo 'You will need to use this same password for the keyfs.' echo 'The authid: MUST be set to glenda.' auth/factotum -S echo 'Enter password for keyfs. This MUST be the same password you just entered.' auth/keyfs /n/newfs/adm/keys auth/changeuser glenda factkey=`{cat /mnt/factotum/ctl |grep dp9ik} ndbauthdom=`{echo $factkey(4) |sed 's/dom/authdom/'} export ndbauthdom } }