#!/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 glenda nvram machine key.' echo 'You will need to use this same password for the keyfs.' echo 'auth/wrkey' auth/factotum -S echo 'Enter the same password you just gave for the keyfs database.' echo 'auth/changeuser' 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 } }