Technical article 105804

Non-root user unable to run "lpadmin -a" to mount a form.

OpenServer 5.0.4

Written · Last revised

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> -a
and this error is displayed:
Insufficient authorization for attempted operation

Other "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 testform

The 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 describe

Other forms may have more or less files than shown above.

See also

man scoadmin(ADM), man lpadmin(ADM), man Intro(ADM)

From the Xinuos technical article database, record 105804. Reproduced with permission. The original is at www.sco.com/ta/105804, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.