[Triumf-linux-managers] Problem printing as "myself" but not as "root"

Mina Nozar nozarm at triumf.ca
Thu Nov 30 16:31:10 PST 2006


Hi all,

I have tried printing the error message in google, various key word 
searches, and even posted the following
message to the cups-general mailing list, but so far, I've had no luck 
finding a solution.

I recently changed the flavor of Linux on my laptop at home (from FC3 to 
SL4.3).
I had configured an HP Deskjet 5940 printer (USB port) as a local 
printer via printtool
and cups as the printing scheduler. All was working fine under FC3 and I 
could print
as "myself" and as "root". After the SL4.3 installation, I have not been 
able to print
as "myself" but can print as "root".
I have set the printer name to "hphome".

As root:
 >> lpq
   hphome is ready no entries
 >>  lpstat -a
   hphome accepting requests since Jan 01 00:00

As myself:
 >> lpq
    lp: error - LPDEST environment variable names non-existent 
destination "hphome"!

 >> lpstat -a
   lpstat: get-jobs failed: client-error-forbidden


Here are the ownership/permissions set by cupsd on various relevant 
directories:

 >> ls -l /etc/printcap
    -rw-r--r--    1 root   root       171 Nov 22 10:21 printcap

 >> more /etc/printcap
    # This file was automatically generated by cupsd(8) from the
    # /etc/cups/printers.conf file.  All changes to this file
    # will be lost.
    hphome|hphome:rm=inspire:rp=hphome:
------------------------------------------------------------------------------------------------

 > > ls -alrt /etc/cups
-rw-r-----    1 root sys      328 Nov 18 16:59 printers.conf
-rw-r-----    1 root sys    22213 Nov 18 14:57 cupsd.conf
.
Of course I can't view the contents of either of the above files as 
"myself":
 >> more /etc/cups/printers.conf
    /etc/cups/cupsd.conf: Permission denied

 >> more /etc/cups/printers.conf
/etc/cups/printers.conf: Permission denied
-------------------------------------------------------------------------------------------------

 >> ls -l /var/spool
drwx--x---   3 root   sys     4096 Nov 18 13:31 cups/
 >> ls -alrt /var/spool/cups/
     ls: /var/spool/cups/: Permission denied

And  in  /etc/passwd, I have:
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin

And I belong to the "lp" group:
 >>  groups
 >> nozarm disk lp

============================================================

I tried adding myself to the "sys" group but that didn't work either. Of 
course
  after the change, I can view the contents of files under /etc/cups


I can't find any useful info in either
/var/log/cups/error_log
or
/var/log/cups/access_log

I also tried removing the printer, and redoing the config.  Same results.
I also tried changing the ownership of various cups related dires to 
lp:sys but restarting
the cups service, resets all permissions to what they used to be before...

================================================================

If you have any ideas or can point me in the right direction, please let 
me know.
Thanks,
Mina


More information about the Triumf-linux-managers mailing list