diff options
| author | stanley lieber <stanley.lieber@gmail.com> | 2011-05-04 18:55:08 +0000 |
|---|---|---|
| committer | stanley lieber <stanley.lieber@gmail.com> | 2011-05-04 18:55:08 +0000 |
| commit | 0461c5843310c5c51bf43b0835f180492e32f579 (patch) | |
| tree | f26f48abfbde223adc9630d9becba10aa6f1f7b9 /rc/bin/inst/authsetup | |
| parent | e9a55e0333d2da1f0f3a129310cf210684590494 (diff) | |
| download | plan9front-0461c5843310c5c51bf43b0835f180492e32f579.tar.xz | |
add cpu server to the installer; add more files for cpu server; make sure they are included on the cd-rom.
Diffstat (limited to 'rc/bin/inst/authsetup')
| -rwxr-xr-x | rc/bin/inst/authsetup | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/rc/bin/inst/authsetup b/rc/bin/inst/authsetup new file mode 100755 index 000000000..dc23e73b3 --- /dev/null +++ b/rc/bin/inst/authsetup @@ -0,0 +1,36 @@ +#!/bin/rc + +# desc: set system password for auth, invalidate nvram +# prereq: systype copydist + +nvram=`{echo `{basename -d $fs}^/nvram} + +switch($1) { +case checkdone + if(! ~ $syst cpu || ! grep trust $nvram){ + authsetup=ready + export authsetup + } +case go + echo + echo 'Setup keyfs and provide a password for the machine' + echo + + auth/keyfs + + if(! grep trust $nvram) + echo 'trust, but verify' >$nvram >[2=1] + + echo + echo 'You will be asked to enter an authid, authdom, secstore key,' + echo 'and password upon next boot. The authid is the hostowner.' + echo 'The authdom is the domain from your network configuration.' + echo 'The secstore key and password should be a secret password' + echo 'of eight characters or greater in length. Remember the' + echo 'password, you will need to use it again when creating the' + echo 'bootes user on the auth server.' + echo + + authsetup=done + export authsetup +} |
