TCP/IP and Data Communications Administration Guide

/etc/uucp/Grades File

The /etc/uucp/Grades file contains the definitions for the job grades that can be used to queue jobs to a remote computer. It also contains the permissions for each job grade. Each entry in this file represents a definition of an administrator-defined job grade that lets users queue jobs.

Each entry in the Grades file has the following format:

User-job-grade System-job-grade Job-size Permit-type ID-list

Each entry contains fields that are separated by blank space. The last field in the entry is made up of subfields also separated by spaces. If a entry takes up more than one physical line, then you can use a backslash to continue the entry onto the following line. Comment lines begin with a pound sign (#) and occupy the entire line. Blank lines are always ignored.

User-job-grade Field

This field contains an administrative-defined user job grade name of up to 64 characters.

System-job-grade Field

This field contains a one-character job grade to which User-job-grade is mapped. The valid list of characters is A-Z, a-z, with A having the highest priority and z the lowest.

Relationship Between User and System Job Grades

The user job grade can be bound to more than one system job grade. It is important to note that the Grades file is searched sequentially for occurrences of a user job grade. Therefore, any multiple occurrences of a system job grade should be listed according to the restriction on the maximum job size.

While there is no maximum number for the user job grades, the maximum number of system job grades allowed is 52. The reason is that more than one User-job-grade can be mapped to a System-job-grade, but each User-job-grade must be on a separate line in the file. Here is an example:


mail N Any User Any netnews N Any User Any 

Given this configuration in a Grades file, these two User-job-grade will share the same System-job-grade. Since the permissions for a Job-grade are associated with a User-job-grade and not a System-job-grade, two User-job-grades can share the same System-job-grades and have two different sets of permissions.

Default Grade

You can define the binding of a default User-job-grade to a system job grade. You must use the keyword default as user job grade in the User-job-grade field of the Grades file and the system job grade that it is bound to. The Restrictions and ID fields should be defined as Any so that any user and any size job can be queued to this grade. Here is an example:


default a Any User Any 

If you do not define the default user job grade, then the built-in default grade Z is used. Because the restriction field default is Any, multiple occurrences of the default grade are not checked.

Job-size Field

This field specifies the maximum job size that can be entered in the queue. Job-size is measured in bytes and can be a list of the options listed in Table 12-8:

Table 12-8 Job-size Field

nnnn

Integer specifying the maximum job size for this job grade 

nK

Decimal number representing the number of kilobytes (K is an abbreviation for kilobyte)

nM

Decimal number representing the number of megabytes (M is an

abbreviation for megabyte) 

Any

Keyword specifying that there is no maximum job size 

Here are some examples:

Permit-type Field

This field contains a keyword that denotes how to interpret the ID list. Table 12-9 lists the keywords and their meanings:

Table 12-9 Permit-type Field

Keyword 

ID List Contents 

User

Login names of users permitted to use this job grade 

Non-user

Login names of users not permitted to use this job grade 

Group

Group names whose members are permitted to use this group 

Non-group

Group names whose members are not permitted to use this job grade 

ID-list Field

This field contains a list of login names or group names that are to be permitted or denied queuing to this job grade. The list of names are separated by blank space and terminated by a newline character. The keyword Any is used to denote that anyone is permitted to queue to this job grade.