trouble adding beh

Helge Blischke h.blischke at srz.de
Thu Jul 13 04:13:12 PDT 2006


hcheng wrote:
> Hi Till,
> 
> I have been restarting CUPS. (I even tried rebooting the machine) no change. Permission for /usr/bin/perl was already set to 755, and I have removed write privilege from others for beh. restarted cups again. still no beh in lpinfo. :(
> 
> Any other ideas?
> 
> I think I will try installing another backend on the weekend (maybe paps?) to see if it is a problem with cups or something wrong with perls/beh.. :s
> 
> Haynes
> 
> 
> 
>>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
>>>
>>>
>>
> 

One more issues I found recently with Fedora distros (FC 4 and higher):
If your configure printers using the gnome printer administration and configuration
utility, you will end up with a modified CUPS system talking to a dbus daemon and
having a daemon named eggcups running which both do a lot of hardly
documented things.

Safest on these systems is to compile CUPS from the sources, next best solution
is to install the RPMs but configure CUPS using only lpadmin and/or CUPS' own web
interface.

Helge


-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list