COBOL Manual for TNS and TNS/R Programs

Disk Input and Output
HP COBOL Manual for TNS and TNS/R Programs522555-006
28-5
Ownership and Security
The command in Table 28-2 is the same as the command in Table 28-1, except that
you can read, write, execute, or purge FILE3 from anywhere on the Expand network.
The command in Table 28-3 allows any member of your user group to read or execute
FILE3 from anywhere on the Expand network, but allows only you to write or purge it,
and only from your local system.
The command in Table 28-4 allows any user to read FILE3, only you to write or purge
it, and only a local super ID user to execute it—and these rules apply from anywhere
on the Expand network.
Default File Security
A newly created file has the default file security. You can set the default file security for
the duration of your TACL session with the TACL command VOLUME; you can set it
until further notice with the TACL command DEFAULT (further notice being another
DEFAULT command).
The command in Example 28-5 sets the default file security to “UUUU” until you
override it with a VOLUME command or another DEFAULT command.
The command in Example 28-6 sets the default file security to “CUCU” for the duration
of your TACL session. If you log off and log back on, the default file security reverts to
“UUUU.”
Example 28-1. File Accessible Only to Owner and Only Locally
FUP SECURE FILE3,"OOOO"
Example 28-2. File Accessible Only to Owner
FUP SECURE FILE3,"UUUU"
Example 28-3. File Readable and Executable to Owners User Group
FUP SECURE FILE3,"COCO"
Example 28-4. File Readable to Any User
FUP SECURE FILE3,"NU-U"
Example 28-5. Setting Default File Security to “UUUU”
DEFAULT, "UUUU"
Example 28-6. Setting Default File Security to “CUCU”
VOLUME, "CUCU"