HP 9000 200 Series Manual page 103

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

Each class of users has three types of permissions for accessing an HFS file or directory:
• READ-allows reading a file or directory (such as with CAT, ENTER, and GET).
• WRITE-allows a user to modify a file's or directory's contents (such as with
OUTPUT, RE-STORE, or CREATE).
• SEARCH-an operation on directories which allows you to "search" the directory
(such as with CAT and MASS STORAGE IS). This permission has no meaning for
files (that are not directories) on BASIC.
The current state of these bits are shown in the PERMISSION column of a CAT listing of
the directory in which the file or directory resides
(R
for READ;
W
for WRITE;
X
for
SEARCH; - for "no permission"):
FILE
NUM
REC
MODIFIED
FILE NAME
TYPE
RECS
LEN DATE
TIME PERMISSION OWNER GROUP
==============
===== ======
=====
=============== ==========
===== =====
Directory
File
DIR
256
HPUX
8192
1 7-Nov-86
9:22 RWXRWXRWX
1 7-Nov-86
9:23 RW-RW-RW-
The default permission bits for directories are: RWXRWXRWX.
The default permission bits for files are: RW-RW-RW-.
18
18
9
9
The PERMIT statement is used to permit or restrict access of files and directories
by other users on a system. For more information about user categories and how to
change permissions on a file or directory, see the BASIC Language Reference: PERMIT
statement.
The following example sets READ and WRITE permission for OWNER, but removes
permission for SEARCH:
PERMIT "File"; OWNER:READ.WRITE
Before
After
RW-------
With these permission bits set, the owner of the file can read and write the file (with
GET and RE-STORE, for example), but all other users on the system cannot access the
file.
Using Directories and Files 5-25

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents