Cover V06, I06
Article
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Listing 1
Listing 2
Listing 3
Sidebar 1
Sidebar 2
Sidebar 3
Sidebar 4

jun97.tar


Listing 1: list_pdb -List the system's default database or user's protected password

#!/usr/bin/sh # ----------------------------------------------------------------- # list_pdb List system Default Trusted Computing Database # or a user's Protected Password Database # # usage: list_pdb [logonid [logonid...]] # # args: none : list all pdb's # default : list system default pdb # logonid : list only pdb of logonid # x* : list pdb's starting with x # ----------------------------------------------------------------- PATH=/usr/bin if [ $# -eq 0 ] then for pdb in $(find /tcb/files/auth -type f) do file $pdb | grep -q "ascii text" if [ $? -eq 0 ] then cat $pdb fi done else for logonid in $* do if [ "$logonid" = "default" ] then pdb_dir=system else typeset -L1 pdb_dir=$1 fi cat /tcb/files/auth/$pdb_dir/$logonid done fi # ----------------------------------------------------------------- # Notes: The statement: file $pdb | grep -q "ascii text" # is used to prevent the display of non-text files # in the Protected Database file structure, # specifically, /tcb/files/auth/system/pw_id_map # which is a dynamically built non-text index # file utilized by the system. # ----------------------------------------------------------------- # End of File