Accessing Files Programmer's Guide (32650-90885)

166 Chapter13
Maintaining File Security
Access Control Definition Security (ACD)
Copying ACDs
Examples
To copy the ACD associated with FILEB to FILEA, enter this:
ALTSEC FILEA.XX.DESIGN;COPYACD=FILEB.XX.DESIGN
Only an owner, or a user granted RACD (read ACD) authorization, can copy the ACD from
FILEB.
To copy the ACD attributes of LDEV 7 to LDEV 23, enter this:
ALTSEC 23,LDEV;COPYACD=7,LDEV
Only users with SM capability may do this. By definition, users having SM capability are
owners of all the files and devices on a system. Those users may give themselves access to
any file or device on the system.
Modifying ACDs
Adding ACD pairs
To confer Read access on JOE.DESIGN for FILEA, enter this:
ALTSECT FILEA.XX.DESIGN;ADDPAIR=(R:JOE.DESIGN)
Replacing ACDs
To change the (previous) Read access for SAM.DOE to Write access enter this:
ALTSECT FILEA.XX.DESIGN;REPPAIR(W:SAM.DOE)
To assign Read and Write access to SAM.DOE, do this:
ALTSEC FILEA.XX.DESIGN;REPPAIR(W,R:SAM.DOE)
Deleting ACDs
To remove @.DESIGN from the ACD attributes of FILEA, enter this:
Command Intrinsic Purpose
;COPYACD parameter of
the ALTSEC command
Copy an ACD from one file to another
Command Intrinsic Purpose
ALTSEC To change an ACD
HPACDPUT To change an ACD
Command Intrinsic Purpose
ALTSEC To delete an ACD
HPACDPUT To delete an ACD