System Administration Guide: Solaris Printing

ProcedureHow to Limit User Access to a Form

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

  2. Allow or deny users access to a form.


    # lpforms -f form-name -u allow:user-list | deny:user-list
    
    -f

    Specifies the name of the form for which the allow user access lists or the deny user access list is being created.

    -u allow:user-list

    Represents users to be added to the allow user access list. Use a comma or a space to separate user login IDs. If you use spaces, enclose the list of IDs in quotation marks.

    Table 5–5 provides the valid values for user-list.

    -u deny:user-list

    Represents users to be added to the deny user access list. Use a comma or a space to separate user login IDs. If you use spaces, enclose the list of IDs in quotation marks. Table 5–5 provides the valid values for user-list.

    The specified users are added to the appropriate user access list for the specified form in one of the following files on the print server:

    • /etc/lp/forms/form-name/allow

    • /etc/lp/forms/form-name/deny

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


    # lpforms -f form-name -l
    

Example 8–23 Allowing User Access to a Form

This example shows how to allow only the users nathan and marcia access to the check form.


# lpforms -f check -u allow:nathan,marcia


Example 8–24 Denying User Access to a Form

This example shows how to deny users jones and smith access to the dental form.


# lpforms -f dental -u deny:jones,smith