Log in as superuser or lp on the print server.
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 |
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
Verify the allow and deny forms lists by using the following command.
# lpstat -p printer-name -l |
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 payroll" |