blob: ca3678ea3d801ea59bde953c0b3bbd681eb8bf9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 'in this case '$user'. The authdom is the domain from your'
echo 'network configuration. The secstore key and password should'
echo 'be a secret password of eight characters or greater in length.'
echo 'Remember the password, you will need to use it again when'
echo 'setting the password for '$user' on the auth server.'
echo
authsetup=done
export authsetup
}
|