Technical article 105910

Non-root users can't use "-o nobanner" when printing to HP JetDirect printers.

OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

When a non-root user specifies a print request with no banner, for example, "lp -o nobanner my_printer" to an HP JetDirect printer, the following error message is displayed:

UX:lp: ERROR: The following options can't be handled: -o nobanner TO FIX: The printer(s) that otherwise qualify for printing your request can't handle one or more of these options. Try another printer, or change the options.

However, the root user or the lp user can execute the same command and the job is printed without a preceding banner page, and no error message occurs.

Cause

lpsched(ADM) explicitly checks the id of the user submitting the
print request.  Only 'root' and 'lp' are allowed to specify the
"-o nobanner" option to lp(C) in this instance.

This problem is scheduled to be addressed in a future release of SCO OpenServer.

Solution

The '-o' options "b", "nobanner", "B" and "NOBANNER" are all equivalent and are recognized by the interface script used for the HP JetDirect printer. Therefore, to work around this, use the "-o b", "-o B", or "-o NOBANNER" options to the lp(C) command.

NOTES:    TroubleShooting:
          ---------------
          Getting:
# lp -d my_printer /etc/hosts

UX:lp: ERROR: The following options can't be handled:

TO FIX: The printer(s) that otherwise qualify
        for printing your request can't handle
        one or more of these options. Try
        another printer, or change the options.

It is likely that there is some corruption in the HPNP printing "lp" subsystem.

This has been seen following disk crashes on the root disk.

It has been resolved by it's removal and replacement in "custom" of SCO Unix Enterprise -> Unix -> System Administration -> Printer subsystem -> Multiple line printer support

Take care that any patches that already install "lp" may need to be removed first.

Once the removal has taken place, stop lpsched with "/usr/lib/lpshut" and restart with "/usr/lib/lpsched".

Also, check the printer configuration file in:

/usr/spool/lp/admins/lp/printers/myprinter/configuration to:
# cat configuration
Banner: on:Always
Device: /dev/null
Interface: /usr/spool/lp/model/dumb
Printer type: unknown
Number of banners: 1
Then re-start "lpsched" as described above.

From the Xinuos technical article database, record 105910. Reproduced with permission. The original is at www.sco.com/ta/105910, which is reachable but blocked from search engines.

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.