The following example sets READ and WRITE permission for OWNER, but removes
permission for SEARCH (note that the PERMIT parameters are the same as in the
preceding example, but the "before" permission bits are different):
PERMIT "File"; oWNER:READ.WRITE
Before
After
R-XRW-RW-
RW-RW-RW-
With thcsc pcrmis8ion bits sct, all dasscs of llsprs can rcao ann writc thc filc.
If a user class is not specified (OWNER, GROUP, or OTHER), the corresponding access-
permission bits are not affected. For instance, the following statement sets the permission
bits for OWNER and OTHER but lcavcs thc bits for GROUP unchanged:
PERMIT "File"; oWNER:READ.WRITE; oTHER:READ
Before
After
R--R---W-
RW-R--R--
The next example changes bits for GROUP and OTHER but leaves the bits for OWNER
unchanged:
PERMIT "File"; GROUP: READ; oTHER:READ
Before
After
RW-RW-RW-
RW-R--R--
If no user class is specified, the default permissions for all groups are restored:
PERMIT "File"
Before
After
RW-R--R--
RW-RW-RW-
PERMIT "Directory"
Before
After
RW-R--R--
RWXRWXRWX
5-26
Using Directories and Files