SET-FILE-ACCESS

From NDWiki
Jump to navigation Jump to search

A file may be protected from unauthorized use by the command:

@SET-FILE-ACCESS <file name>, <public access>, <friend access>, <owner access>

Set public, friend and owner access of a specified file. Separated access modes may be specified for the owner of a file, for other users declared as friends and for all other users of the installation. If an access string is empty, ie. only the comma separator or a carriage return is given, the access mode for that user group is not changed.

<file name>
(default type = SYMB) file name.
<public access>
access modes for public.
<friend access>
access modes for friend.
<owner access>
access modes for owner.

Rules:

  1. Permitted for all users with directory access to the file.
  2. The access type can be any relevant combination of the characters (except N which must stand alone):
R - read permitted
W - write permitted
A - append permitted (write from maximum byte pointer)
C - common access permitted (access by more than one user)
D - directory access permitted (the file may be created, deleted, legal access mode changed and new version created)
N - no acccess permitted
  1. @FILE-STATISTICS can be used to check the access types for the file.

Example:

@SET-FILE-ACCESS F-1:DATA N, N, RWACD

Public and friend has no access to the file F-1:DATA. Owner has full access.

Related commands

@SET-DEFAULT-FILE-ACCESS

@SET-FRIEND-ACCESS

References

Norsk Data Document ND–60.050.06 SINTRAN III USERS GUIDE section 3.4.2

Norsk Data Document ND–60.128.03 SINTRAN III REFERENCE MANUAL (printed February 1983), page 1-187

Norsk Data Document ND–60.174.Q01 SINTRAN III QUICK REFERENCE CARD