System Administration Guide, Volume 2

How to Limit Printer Access to a Form

  1. Log in as superuser or lp on the print server.

  2. Allow or deny use of forms on a printer by using the lpadmin command.


    # 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 by using the following command.


    # lpstat -p printer-name -l
    

Examples--Limiting Printer Access to a Form

In the following example, the command allows the printer luna to access only the medical, dental, and check forms.


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

In the following example, the command denies the printer luna from accessing the medical, dental, and check forms.


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