System Administration Guide: Advanced Administration

How to Limit Printer Access to a Form

  1. Log in as superuser, lp, or assume an equivalent role on the print server.

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


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

    -p printer-name

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

    -f allow:form-list | deny:form-list

    Form names to be added to the allow or 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 quotes. 

    The specified form(s) are added to the allow or 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 the allow and deny forms lists.


    # lpstat -p printer-name -l
    

Examples—Limiting Printer Access to a Form

The following 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

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


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