[Triumf-linux-managers] Problem printing as "myself" but not
as "root"
Mina Nozar
nozarm at triumf.ca
Fri Dec 1 12:40:36 PST 2006
Problem solved, thanks to Andrew's help!
It was a subtle one and due to a mistake on my part.
He suggested I run "strace lpq" to trace the system calls for lpq.
Looking through the outputs of
"strace lpq" run as 1) "root" and 2) as "myself",
line by line I found the following difference:
For "root": send(4, "Host: localhost\r\n", 17, 0) = 17
For "myself": send(4, "Host: cups.triumf.ca \r\n", 17, 0) = 17
So, I knew right away that it was a setup problem under my account. It
turns out that a while ago, I had added:
setenv $CUPS_SERVER cups.triumf.ca
to my setup file (~/.cshrc) at work.
Since the rsync'ing and merging my home dirs on my desktop at TRIUMF
and and on my laptop happened right after the upgrade of
my laptop's o.s. flavor from FC3 to SL4.3, I ended up with the .cshrc
file and the CUPS_SERVER setting at work.
After unsetting CUPS_SERVER, the printer is visible to/works for "me"
as well...
BTW, I had set the LogLevel to "debug" from the original "info" setting
in cupsd.conf but still didn't see references to the cups host setting.
Cheers,
Mina
More information about the Triumf-linux-managers
mailing list