System Administration Guide: Printing

ProcedureHow to Limit Printer Access to a Form

  1. On the print server, become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Allow or deny use of forms on a printer.


    # lpadmin -p printer-name -f allow:form-list | deny:form-list
    
    -p

    Specifies the name of the printer for which the allow forms list or deny forms list is being created.

    -f allow: form-list

    Specifies the form name to be added to the allow list. Use a space or a comma to separate multiple form names. If you use spaces to separate form names, enclose the list of form names in quotation marks.

    -f deny: form-list

    Is the form name to be added to the deny list. Use a space or a comma to separate multiple form names. If you use spaces to separate form names, enclose the list of form names in quotation marks.

    The specified form or forms are added to the allow forms list or the deny forms list in one of the following files on the print server:

    • /etc/lp/printers/printer-name/form.allow

    • /etc/lp/printers/printer-name/form.deny

  3. Verify that the allow forms list and the deny forms list are set up correctly.


    # lpstat -p printer-name -l
    

Example 10–25 Allowing Printer Access to a Form

This example shows how to allow the printer luna to access only the medical, dental, and check forms.


# lpadmin -p luna -f allow:medical,dental,check


Example 10–26 Limiting Printer Access to a Form

This example shows how to deny the printer luna from accessing the medical, dental, and check forms.


# lpadmin -p luna -f deny:"medical dental check"