System Administration Guide: Printing

ProcedureHow to Limit User Access to a Form

  1. On the print server, become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  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 6–6 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 6–6 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 10–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 10–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