Re: [SLE] Strange cups/enscript behaviour, protection problem?




Hello,

On Feb 3 23:04 Peter Sutter wrote (shortened):
I have just re-installed cups on a SuSE V9.2 Linux system. User root
can print, other users can't; to be more precise, I get a printout
as user root, but not when logged in as a non-root. Yet when I
check the cups error log, it looks as if the jobs are getting
printed. (see the entries in cups error.log below). Observing the
printers, in both cases, there is data being sent to the printer
(activity light starts flashing).

Which makes sense because regardless which user submits a job
to the printing system, the processes of the printing system
run always under the same user "lp".

In both situations, I attempt to print the same text file using
enscript -P fs_1010_net filename.txt. The printer is a kyocera
fs_1010 printer with a network port, configured as direct port
printing to port 9100.

What goes wrong? cups or enscript?

Regarding CUPS, see
http://portal.suse.com/sdb/en/2002/11/jsmeix_print-cups-options.html

Regarding enscript:
Try the same as normal user when you did before
export LC_ALL="POSIX"
export LANG="POSIX"
If it works then, it is a problem caused by the normal locale
setting of this user which may somehow cause enscript to produce
either PostScript which the printer does not understand
or the well known error that in a locale where the decimal point
is a comma the PostScript also contains commas instead of
decimal points which would result a syntax error in the
PostScript interpreter.
To verify print as normal under the normal locale with enscript
into a file (e.g. echo Hello | enscript ...) and grep for ','.


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@xxxxxxx
90409 Nuernberg, Germany WWW: http://www.suse.de/

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: [SLE] Strange cups/enscript behaviour, protection problem? SOLVED!
    ... On Friday 03 February 2006 23:48, Johannes Meixner wrote: ... printout as user root, but not when logged in as a non-root. ... enscript -P fs_1010_net filename.txt. ... either PostScript which the printer does not understand ...
    (SuSE)
  • Re: enscript + euro
    ... Enscript converts ASCII files to PostScript and writes the generated ... The Enscript configuration file is in /etc/enscript.cfg. ... enscript is not able to convert complex unicode (UTF-8) text ... Describing it as "UTF-8 support" is thoroughly misleading. ...
    (alt.os.linux)
  • Re: lp versus enscript
    ... But then he came back and said enscript is better and to use ... is primarily a program to convert a testfile into Postscript, ... Only those who leisurely approach that which the masses are busy about ...
    (Fedora)
  • Re: lp versus enscript
    ... But then he came back and said enscript is better and to use ... enscript does not come installed with F14; so I would have to install ... enscript is not primaily a printing program, but it can print a file. ... is primarily a program to convert a testfile into Postscript, ...
    (Fedora)