EasySpooler assigns the group for a document to the primary group of the user who submits the document unless the file $LPSDIR/adm/.nogetgrgid exists, in which case the group is unassigned (set to null or blank). For more information on setting the group and priority for documents received from external hosts see, Group_Ownership_with_External_Hosts below.
If you want to change the group, you can set the group in various ways as described in the following list. If the group is set in more than one of these ways, EasySpooler gives priority in the order listed below.
You can set the group by using the environment variable LPOVERRIDE. LPOVERRIDE allows you to set options for llp that take precedence over the same options if set on the llp command line, with the llpd.config file, or in an alias definition. For more information on LPOVERRIDE, see the section on LPOVERRIDE in Chapter 4 of the ROC EasySpooler Developer's Guide.
You can set the group in the command line using the -g group_name option with llp or llpd, or in an alias definition. See the sections on llp and llpd in Chapter 2 and lpsalias in Chapter 3 of the ROC EasySpooler Developer's Guide.
NOTE: You must be root, an administrative user, or have the SetDocOwnwer capability for this function to take effect. If enable_suppgrps is set to yes in the global turning parameters, you can set the group to a group to which you belong. If you do not meet any of these requirements, the document is spooled, but EasySpooler ignores the group name you entered.
You can set the group through mapping, which offers you the option of setting the group in the user, group, or default mapping definition. See Security: Mapping.
You can set the group with the environment variable LPOPTION using the -g group_name option with llp or llpd. See the section on LPOPTION in Chapter 4 of the ROC EasySpooler Developer’s Guide.
You can set the group by using the environment variable LPS_GROUP to set the value of the group field in the queue record when a spool file is created. See the section on LPS_GROUP in Chapter 4 of the ROC EasySpooler Developer’s Guide.
The ways for setting the group and their priority varies for documents received from external hosts.
NOTE: See Chapter 4, Environment Variables, in the ROC EasySpooler Developer’s Guide for information on setting an environment variable so that it affects document ownership for a document received from an external host.
The priority if receiving a document from a trusted hosta when the document was submitted through a remote Rhapsody or EasySpooler destination is as follows:
LPOVERRIDE environment variable with the -g group_name option
Alias definition with the -g group_name option (only if spooling to an alias)
User, group, or default mapping definition
Value from the incoming queue record
NOTE: If the incoming queue record has a group field, EasySpooler uses its value. If the group field does not exist, EasySpooler considers the group unassigned.
LPOPTION environment variable with the -g group_name option
The primary group of the user in the incoming queue record
NOTE: If the user does not exist on the receiving host or the file .nogetgrgid exists in $LPSDIR/adm, EasySpooler leaves the group unassigned (set to null or blank).
The priority if receiving a document from a trusted non-Rhapsody or non-EasySpooler host when the document was submitted through lpr is as follows:
LPOVERRIDE environment variable with the -g group_name option
Alias definition with the -g group_name option (only if spooling to an alias)
User, group, or default mapping definition
LPOPTION environment variable with the -g group_name option
The primary group of the user in the incoming queue record
NOTE: If the user does not exist on the receiving host or the file .nogetgrgid exists in $LPSDIR/adm, EasySpooler leaves the group unassigned (set to null or blank).
The priority if receiving a document from a trusted host when the document was submitted through the ROC Printer Monitor is as follows:
LPOVERRIDE environment variable with the -g group_name option
Alias definition with the -g group_name option (only if spooling to an alias)
User, group, or default mapping definition
LPOPTION environment variable with the -g group_name option
LPS_GROUP environment variable
The primary group of the user who submitted the document through the Printer Monitor
NOTE: If the user does not exist on the receiving host or the file .nogetgrgid exists in $LPSDIR/adm, EasySpooler leaves the group unassigned (set to null or blank).
The priority if receiving a document from an untrusted Rhapsody or EasySpooler host when the document was submitted through a remote destination is as follows:
LPOVERRIDE environment variable with the -g group_name option
Alias definition with the -g group_name option (only if spooling to an alias)
Remote mapping definition
NOTE: If the remote mapping definition specifies a group, that value is used. If the Accept box is checked for the group field, the value in the incoming queue record is used. If the group field exists but is blank, EasySpooler leaves the group unassigned (set to null or blank)
LPOPTION environment variable with the -g group_name option
The priority if receiving a document from an untrusted non-Rhapsody or non-EasySpooler host when the document was submitted through lpr is as follows:
LPOVERRIDE environment variable with the -g group_name option
Alias definition with the -g group_name option (only if spooling to an alias)
Remote mapping definition
NOTE: If the remote mapping definition specifies a group, that value is used. If the Accept box is checked for the group, EasySpooler ignores it because the lpr control record does not provide a group.
LPOPTION environment variable with the -g group_name option
Default group unassigned (null or blank)
The priority if receiving a document from an untrusted host when the document was submitted through the Printer Monitor is as follows:
LPOVERRIDE environment variable with the -g group_name option
Alias definition with the -g group_name option (only if spooling to an alias)
Remote mapping
NOTE: If the remote mapping definition specifies a group, that value is used. If the Accept box is checked for the group, EasySpooler ignores it because the lpr control record does not provide a group.
LPOPTION environment variable with the -g group_name option
LPS_GROUP environment variable
Default group unassigned (null or blank)
_______________________________
a. For information on trusted and untrusted hosts, see Files that Identify EasySpooler Hosts.