dslpaccess Command
Purpose
Allow or deny non-directory enabled users and systems access to a print queue for a System V print subsystem.
Syntax
Description
The dslpaccess command either allows or denies users and systems access to a directory-enabled print queue. It is modeled on the lpadmin command's -u option.
Allow
and deny lists consist of a comma-separated list of entries, each
of which may specify a login ID, or a system name and login ID, as
follows:
[[LoginID]|[System!LoginID]],[[LoginID]|[System!Login-ID]],...
LoginID or System,
or both, can be set to the wildcard all, allowing or denying
all appropriate entries. Use all with care. When the all entry
is added to one list, all non-all entries are removed from
the other list, for the appropriate value of LoginID or System.
The default for System is the local host. The user of this command must be directory-enabled and have permissions set for write, modify, search and read on the directory, in the directory context in which they are administrator.
Flags
Item | Description |
---|---|
-a AllowList | Specifies a list of users to add to the allow list. If present, these are deleted from the deny list. This option can not be used with the -d option. |
-d DenyList | Specifies a list of users to add to the deny list. If present, these are deleted from the allow list. This option can not be used with the -a option. |
-q QueueName | The queue-name parameter is the Relative Distinguished Name (RDN) of the print queue. If the print queue name does not exist in the directory context, the command fails. |
Exit Status
- 0
- Indicates success.
- 1
- Indicates invalid options.
- 2
- Indicates that the specified print queue is unknown.
- 3
- Indicates that the user does not have appropriate access control permissions.
- 4
- Indicates that an invalid RDN was supplied.
- 5
- Indicates that the value is already set.
- 6
- Indicates any other error.
Examples
- The following grants user fredb access to print queue printq1
on host systemX:
dslpaccess -q printq1 -a systemX!fredb
- The following denies access to print queue printq1 to user tomt
for all hosts:
dslpaccess -q printq1 -d all!tomt