Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!plug.news.pipex.net!pipex!tube.news.pipex.net!pipex!dish.news.pipex.net!pipex!handbag.tecc.co.uk!parody.tecc.co.uk!not-for-mail From: james@parody.tecc.co.uk (James Raynard) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Printer Set up problem when following the Handbook Date: 25 Jan 1996 23:12:58 -0000 Organization: A FreeBSD box Lines: 35 Message-ID: <4e92pq$34o@parody.tecc.co.uk> References: <22JAN199612193035@jane.uh.edu> NNTP-Posting-Host: localhost In article <22JAN199612193035@jane.uh.edu>, Man, Tony T <ttm58327@jane.uh.edu> wrote: >I tried to set up my HP660 inkjet following the steps in the handbook. >I always get the error message "lpd[267] cannot execv >/usr/local/libexec/if-simple." What does it mean? I have tried to >run if-simple and it echoed everything I typed. There were some discussion >about this problem but not solution. Does anyone know how to fix this >problem? Thank you in advance. What the error message means is that the printer program tried to run your filter script but the script could not be run - this is usually a sign that the permissions on the filter program are wrong. They should look like this:- bash$ ls -l /usr/local/libexec total 40 -rwxrwxr-x 1 root bin 8826 Dec 29 14:28 gsif* -rwxrwxr-x 1 root bin 8826 Dec 28 22:32 hpif* bash$ ls -ld /usr/local/libexec drwxr-xr-x 2 bin bin 512 Dec 28 23:00 /usr/local/libexec/ If the permissions are correct and it still doesn't work, you have exactly the same problem as I had with an HP520 inkjet. The solution, believe it or not, is to compile a C program that does exactly the same thing as the script! (with the correct permissions, obviously). If anyone can explain why this works when the script doesn't, I would be very interested to know - the only possibility I could think of was that the printer program was setuid and that FreeBSD has a restriction on setuid programs execing scripts, but I don't think either of these is true. James -- Segmentation fault (core dumped): cannot find file '.signature'