print error , 3 Permission denied
zqy
zqy2000zqy at 163.com
Thu Oct 4 19:19:39 PDT 2007
>>> What's your OS ?
> Linux
That's "half an answer". There are many brands, flavors and varieties
of "Linux". Some have their own specific quirks, which may help to
track down a problem.
I am using SUSE, it has cups and it do work. But now I need to compile cups on an embedded system, I build the source on SUSE. but when run on the embedded system this error happen,
so I run my compiled cups on the build PC to try, and the error message is same. So I think the problem maybe I missed some thing.
>>> What's your version of CUPS ?
> sourceforge
>>> Where did you obtain the CUPS packages you installed ?
> 1.1.23
I'm not aware that Sourceforge offers any CUPS source packages. Can
you name the URL there, please? (Has nothing to do with your prob-
lem, I'm just curious...)
sorry,I get the 1.3.3 from sourceforge,(link form here) 1.1.23 maybe findrpm.net.
>>> What's the output of "ls -l /opt/cups/lib/cups/filter/" ?
> -rwxr-xr-x 1 root root 211143 2007-10-03 07:17 foomatic-rip
> -rwxr-xr-x 1 root root 17598 2007-10-03 07:16 gziptoany
> -rwxr-xr-x 1 root root 115473 2007-10-03 07:16 hpgltops
> -rwxr-xr-x 1 root root 57608 2007-10-03 07:16 imagetops
> -rwxr-xr-x 1 root root 94566 2007-10-03 07:16 imagetoraster
> -rwxr-xr-x 1 root root 2090507 2007-10-03 07:16 pdftops
> -rwxr-xr-x 1 root root 81874 2007-10-03 07:16 pstops
> lrwxrwxrwx 1 root root 13 2007-10-03 07:16 rastertodymo -> rastertolabel
> -rwxr-xr-x 1 root root 44194 2007-10-03 07:16 rastertoepson
> -rwxr-xr-x 1 root root 38399 2007-10-03 07:16 rastertohp
> -rwxr-xr-x 1 root root 40974 2007-10-03 07:16 rastertolabel
> -rwxr-xr-x 1 root root 76136 2007-10-03 07:16 texttops
OK, no problem here -- all filters are indeed executable.
All I need is this right. nothing else like ghostscript or something...
>>> What's the output of "ls -lad {/opt,/opt/cups,/opt/cups/var,/opt/var,/var}/spool/cups/"
?
>
> /bin/ls: /opt/spool/cups/: No such file or directory
> /bin/ls: /opt/cups/spool/cups/: No such file or directory
> /bin/ls: /opt/var/spool/cups/: No such file or directory
> drwx--x--- 3 root lp 72 2007-10-03 07:16 /opt/cups/var/spool/cups/
> drwx--x--- 2 lp lp 120 2007-10-03 05:37 /var/spool/cups/
Since you do have two "spool" directories which are potentially used
by your CUPS, it's not yet sure which one is the "right" one.
Assuming, your cupsd wants to use the one in "/opt": this one is owned
by "root". But in CUPS 1.1.23, there is an option to let cupsd run as
non-root user, typically "lp". This means, the scheduler, running as
"lp", may not be able to read and write the files to/from the spool
directory, and hence you get "permission denied".
Check if your cupsd.conf has a "RunAsUser Yes" line. If it has, you
should be able to fix your problem. Try this command (as root)
chmod -R lp:lp /opt/cups/var/spool/cups
OK,as I said above, the /var/spool/cups is the cups in SUSE system. But I build and install
cups 1.1.23 in /opt/cups. So I run "/opt/cups/sbin/cupsd" "/opt/cups/sbin/lpadmin xxx"and
"/opt/cups/bin/lp" to print. And I run as root. cupsd.conf doesn't have "RunAsUser Yes" line.
>>> What's the output of "df" ?
> /dev/sda2 7333404 7197568 135836 99% /
> tmpfs 353372 0 353372 0% /dev/shm
> /dev/sdb 8256952 6837708 999816 88% /mnt
This looks like your harddisk is nearly filled up. Which can also
lead to "Permission denied" messages, because there is no space
left to spool printjobs.
I still have 135M left, I also remove something to make harddisk have space. But I still
has my problom.
Thanks a lot ...:)
More information about the cups
mailing list