[cups.general] Re: trouble adding beh

Till Kamppeter till.kamppeter at gmx.net
Thu Jul 13 00:59:55 PDT 2006


At first, restart CUPS, either with

killall -HUP cups

or

/etc/init.d/cups restart

If you have still trouble, check the permissions of /usr/bin/perl:

ls -l /usr/bin/perl

It must be world-executable

chmod 755 /usr/bin/perl

For security reasons you should remove the world-writable bit from beh:

chmod o-w /usr/lib/cups/backend/beh

Print jobs do never modify beh, so doing this cannot break anything.

   Till


hcheng wrote:
> Hi,
> thanks for the reply, Till!
> 
> [root at localhost cups]# ls -l /etc/cups/printers.conf
> -rw-r-----  1 root sys 3806 Jul 12 00:30 /etc/cups/printers.conf
> [root at localhost cups]# ls -l /usr/lib/cups/backend/beh
> -rwxrwxrwx  1 root root 7199 Jul 11 23:15 /usr/lib/cups/backend/beh
> [root at localhost cups]# lpinfo -v
> network socket
> direct hal
> network http
> network ipp
> network lpd
> direct parallel:/dev/lp0
> direct scsi
> serial serial:/dev/ttyS0?baud=115200
> serial serial:/dev/ttyS1?baud=115200
> serial serial:/dev/ttyS2?baud=115200
> serial serial:/dev/ttyS3?baud=115200
> direct usb:/dev/usb/lp0
> direct usb:/dev/usb/lp1
> direct usb:/dev/usb/lp2
> direct usb:/dev/usb/lp3
> direct usb:/dev/usb/lp4
> direct usb:/dev/usb/lp5
> direct usb:/dev/usb/lp6
> direct usb:/dev/usb/lp7
> direct usb:/dev/usb/lp8
> direct usb:/dev/usb/lp9
> direct usb:/dev/usb/lp10
> direct usb:/dev/usb/lp11
> direct usb:/dev/usb/lp12
> direct usb:/dev/usb/lp13
> direct usb:/dev/usb/lp14
> direct usb:/dev/usb/lp15
> network smb
> [root at localhost cups]# lpstat -v
> device for konicami: parallel:/dev/lp0
> 
> 
> As I have mentioned in my last post, I have tried changing permission of beh to 755, and 777 with the same result (beh not loaded in lpinfo.) During my troubleshooting, I have also tried changing the permission of printers.conf and cupsd.conf to 777 with the same result. permission 640 (above) is the default from fedora install.
> 
> Below is my printers.conf:
> [root at localhost cups]# cat ./printers.conf |grep -v ^#|grep [:alnum:]
> <Printer konicami>
> Info Konica Minolta PagePro 1350W
> DeviceURI beh://1/5/3/parallel:/dev/lp0
> StateMessage Printer is idle.
> Accepting Yes
> </Printer>
> 
> thanks a bunch!
> Haynes
> 
> 
> 
>>Can you post the output of
>>
>>ls -l /etc/cups/printers.conf
>>ls -l /usr/lib/cups/backend/beh
>>lpinfo -v
>>lpstat -v
>>
>>here? Can you also post the content of your /etc/cups/printers.conf file
>>
>>   Till
>>
>>hcheng wrote:
>>
>>>Hi,
>>>
>>>I have compiled and installed min12xxw driver on FC4 install (Kernel 2.6.17). I pretty much followed the cups-doc.html and used the http page to configure cups. The printer (Minolta PagePro 1350W) worked fine upon installation (on parallel:/dev/lp0), but I can't seem to get it to go through beh.
>>>
>>>I downloaded the beh script from linuxprinting.org and put it in /usr/lib/cups/backend, and I have tried both 755 and 777 permission with the same results. I have checked that my perl path is indeed in /usr/bin/perl. I dont see "network beh" in lpinfo -v, and when I try to put beh in printers.conf, I get some Access Denied errors for printers.conf in the error log. Any ideas?
>>>
>>>thanks!
>>>Haynes
>>>
>>>note: - when I restart cups, the printer disappears. I had to add the printer in printers.conf manually to get it to stay.. don't know if this is related.
>>>
>>>The version of cups I am using is 1.1.23.
>>>
>>>Error_Log
>>>---------
>>
>>[...]
>>
>>>D [12/Jul/2006:00:09:59 -0700] StartJob: envp[10]="DEVICE_URI=beh://1/5/3/parallel:/dev/lp0"
>>
>>[...]
>>
>>>D [12/Jul/2006:00:09:59 -0700] StartJob: backend = "/usr/lib/cups/backend/beh"
>>
>>[...]
>>
>>>D [12/Jul/2006:00:09:59 -0700] [Job 1] /usr/lib/cups/backend/beh: Permission denied
>>
>>[...]
>>
>>>E [12/Jul/2006:00:09:59 -0700] Unable to backup printers.conf - Permission denied
>>>E [12/Jul/2006:00:09:59 -0700] Unable to save printers.conf - Permission denied
>>>E [12/Jul/2006:00:09:59 -0700] Unable to restore printers.conf - No such file or directory
>>
>>[...]
>>
> 
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
> 
> 





More information about the cups mailing list