HP 9000 200 Series Manual page 102

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

HFS File and Directory Access Permissions
For HFS directories, you can use the PERMIT statement to assign and remove access
permissions of a file or directory. Since this file system is compatible with the HP-UX
system, BASIC uses a subset of the HP-UX file protection mechanism. (With HP-UX,
the chmod command performs this function.)
There are 9 "permission bits" for HFS files and directories, broken into three classes (one
for each class of users):
OWNER
GROUP
OTHER
READ
WRITE
SEARCH READ
WRITE
SEARCH READ
WRITE
SEARCH
The three classes of users are:
• OWNER-initially the person who created the file; however, ownership of indi-
vidual files and directories can be changed with the CHOWN
l
statement. With
BASIC, the system "owns" all files and directories with an owner identifier of 18.
• GROUP-initially the "group" to which the file'sjdirectory's "owner" belongs;
however, the group identifier of individual files and directories can be changed
with the CHGRp
l
statement. With BASIC, the system is in the "group" with an
identifier of 9, which is also the default group identifier used by the Workstation
Pascal system.
• OTHER-all other users who are not the owner and are not in the same group as
the owner-that is, everyone else.
1
CHOWN and CHGRP are used only when you will also be using a disc with the HP-UX system. They
give selected HP-UX users ownership or group access to files and directories. See the BASIC Language
Reference entries for CHOWN and CHGRP for further information.
5- 24
IT
sing Directories and Files

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents