Log in as superuser, lp, or assume an equivalent role on the print server.
Allow or deny users access to a form.
# lpforms -f form-name -u allow:user-list | deny:user-list |
-f form-name |
Name of the form for which the allow or deny user access list is being created. |
-u allow:user-list |
Represents users to be added to the allow access list. Use a comma or a space to separate users' login IDs. If you use spaces, enclose the list of IDs in quotes. Table 5–5 provides the valid values for user-list. |
deny:user-list |
Represents users to be added to the deny user access list. Use a comma or a space to separate users' login IDs. If you use spaces, enclose the list of IDs in quotes. Table 5–5 provides the valid values for user-list. |
The specified user(s) are added to the allow or deny user access list for the specified form in one of the following files on the print server:
/etc/lp/forms/form-name/allow or
/etc/lp/forms/form-name/deny
Verify the allow and deny user access lists.
# lpforms -f form-name -l |
The following example shows how to allow only the users nathan and marcia access to the check form.
# lpforms -f check -u allow:nathan,marcia |
The following example shows how to deny users jones and smith access to the dental form.
# lpforms -f dental -u deny:"jones,smith" |