Problem
After setting up a printer, and creating a form, I want to mount the form as a non-root user. I run the command:
# /usr/lib/lpadmin -p <printer_name> -M -f <form_name> -aand this error is displayed:Insufficient authorization for attempted operationOther "lpadmin" options seem to work fine for non-root users.
Cause
The non-root user does not have "lp" authorization.
and/or:The files and directory permissions for a form are incorrect.
Solution
Verify that the non-root user has "lp" authorization and that the permissions for the files and directories for a form are set properly.
To display current "authorizations" for a user:
1. Run "scoadmin account" and highlight the user.
2. Then, from the Account menu "Users" choose "Authorizations".
3. To add "lp" authorizations, select "lp" from "Not Authorized"
4. Then select "Add" to add to the "Authorized" list.
As an example, the permissions of a form, "testform" from the directory /usr/spool/lp/admins/lp/forms/testform, should be:
drwxrwx--- 2 lp lp 512 Oct 1 10:49 testformThe permissions of the files in that directory should be:
-rw-rw---- 1 lp lp 109 Oct 1 10:53 align_ptrn
-rw-rw-r-- 1 lp lp 11 Oct 1 10:53 comment
-rw-rw-r-- 1 lp lp 0 Oct 1 10:49 deny
-rw-rw-r-- 1 lp lp 156 Oct 1 10:53 describeOther forms may have more or less files than shown above.
See also
man scoadmin(ADM), man lpadmin(ADM), man Intro(ADM)