COBOL Manual for TNS and TNS/R Programs

Disk Input and Output
HP COBOL Manual for TNS and TNS/R Programs522555-006
28-4
Ownership and Security
Topics:
Security Attributes
Default File Security
Accessing Files on Other Nodes
Security Attributes
Security attributes of a disk file allow the owner to control access to the file. If you own
a file, you can change its security at any time with the FUP SECURE command:
The value of each security attribute determines the class of user who has permission
to perform the corresponding operation on the file (see Table 28-1).
To display a file’s current security attributes, use the FUP INFO command.
To alter a file’s security from an HP COBOL program, call the routine
COBOL_SETMODE_.
Suppose that your HP system is part of an Expand network and you own the disk file
FILE3. The command in Table 28-1 prevents everyone but you from reading, writing,
executing, or purging FILE3, but you can only read, write, execute, or purge the file on
your local system.
FUP SECURE file-name,"RWEP"
Security Attribute Meaning
R Reading
W Writing
E Executing
P Purging
Table 28-1. Security Attributes for Disk Files
1
Who Can Perform the
Corresponding Operation on the File
On Local
System Only
From Anywhere on Expand
Network
2
Owner only O U
Any member of owner’s user group G C
Any user A N
Local super ID only - Not applicable
1. Uppercase letters are shown, but the corresponding lowercase letters are equivalent.
2. If your HP system is part of an Expand network.