Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

Using File Modes as a Typing Criteria

Use the MODE field to specify the required permissions.

Mode criteria are usually used in combination with name-based, location-based, or content-based data typing. They allow you to limit a data type to a file or directory, or to specify the required read, write, and execute permissions.

The MODE field can include logical operators (Table 13-4) and characters (Table 13-5).

Table 13-4 MODE Field Logical Operators and Descriptions

Operator 

Description 

!

Logical operator NOT

&

Logical operator AND

|

Logical OR

Table 13-5 MODE Field Characters and Descriptions

Character 

Description 

f

The data type applies only to files 

d

The data type applies only to directories 

r

The file is readable by any user 

w

The file is writable by any user 

x

The file is executable by any user 

l

The file is a link 

The default for a particular mode is that the mode does not matter.

Examples