Safeguard Reference Manual (G06.24+, H06.03+ )
Disk-File Security Commands
Safeguard Reference Manual—520618-013
8-63
SET DISKFILE Command
Examples
1. In this example, user ID 33,6 sets the default disk file attributes:
=ASSUME DISKFILE
=SET ACCESS 33,1 (r,e); 33,2 (r,w); 33,5 (r,w); &
=33,6 (r,w,e,p,o)
=SET AUDIT-ACCESS-PASS local , AUDIT-MANAGE-PASS all
=SET AUDIT-MANAGE-FAIL local
User ID 33,6 requests a SHOW report:
=SHOW
A SHOW report displays: 
User 33,6 adds a record for MYFILE:
=ADD myfile
2. Later, user ID 33,6 (who wants to secure a new disk file named COPY) enters a 
SET LIKE command, which sets the default disk file attributes to match the record 
for MYFILE. User ID 33,6 then specifies other attribute changes when the disk file 
is added: 
=SET DISKFILE LIKE myfile
=SHOW DISKFILE
=ADD DISKFILE copy, OWNER 33,5, ACCESS 33,5 (e,p); &
=33,6 - (w,p,o)
The OWNER attribute in the ADD DISKFILE command gives the file COPY a 
different owner from that of MYFILE. Also, the ACCESS specifications give the 
TYPE   OWNER  WARNING-MODE
 DISKFILE  33,6  OFF
 AUDIT-ACCESS-PASS = LOCAL AUDIT-MANAGE-PASS = ALL
 AUDIT-ACCESS-FAIL = NONE  AUDIT-MANAGE-FAIL = LOCAL
 LICENSE = OFF PROGID = OFF CLEARONPURGE = OFF PERSISTENT = OFF
  033,001  R, E
 033,002 R,W
 033,005 R,W
 033,006 R,W,E,P, O










