Safeguard User's Guide (G06.24+, H06.03+)

Working With SAFECOM
Safeguard User’s Guide422089-009
7-11
Using SAFECOM in Execute-and-Quit Mode
Using SAFECOM in Execute-and-Quit Mode
If you need to enter only a few SAFECOM commands, you can use the execute-and-
quit mode from TACL. To run SAFECOM in this mode, type "SAFECOM," followed by
one or more security commands.
SAFECOM executes the commands and immediately returns control to TACL. If you
want to execute another SAFECOM command, you must begin that command by
retyping SAFECOM at the TACL prompt.
For example, assume user 3,7 is running TACL and wants to change the access
control list for the disk file named $data.sales.report6. The following commands display
the status of the protected disk file and grant READ authority to another user:
2> VOLUME $data.sales
3> SAFECOM INFO DISKFILE report6
4> SAFECOM ALTER DISKFILE report6, ACCESS mkt.jane READ
5> SAFECOM INFO DISKFILE report6
In this example, the TACL VOLUME command (prompt 2) establishes the default
volume and subvolume. (The current defaults are passed to SAFECOM when it is run.
SAFECOM then uses these default names to expand the partially qualified disk-file
name report6 to $data.sales.report6.)
The first SAFECOM command (prompt 3) requests an INFO report on the file
$data.sales.report6. After the access list for report6 is displayed, an ALTER DISKFILE
command adds a new access control list entry to grant READ authority to the local
user MKT.JANE, with user ID 33,104. The last SAFECOM command (INFO DISKFILE
at prompt 5) shows that the access control list for report6 was changed correctly.
For additional information about access control lists, see Section 3, Securing Disk
Files.
Using SAFECOM in Batch Mode
Batch mode is useful when you want to perform a number of security management
tasks more than once. To use SAFECOM in batch mode, you must first create an EDIT
file that contains the sequence of SAFECOM commands you want to execute. To
LAST-MODIFIED OWNER STATUS WARNING-MODE
$DATA.SALES
REPORT6 15JUL05, 13:36 3,7 THAWED OFF
003,007 R,W,E,P
LAST-MODIFIED OWNER STATUS WARNING-MODE
$DATA.SALES
REPORT6 22JUL05, 11:57 3,7 THAWED OFF
003,007 R,W,E,P
033,104 R