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/hostsUX: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: 1Then re-start "lpsched" as described above.