Date: Wed, 3 Jan 1996 13:45:12 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) To: james@parody.tecc.co.uk Cc: doc@freebsd.org Subject: Re: Handbook - printer setup Message-ID: <9601032045.AA10768@emu.fsl.noaa.gov> In-Reply-To: <Pine.BSF.3.91.951229135243.322B-100000@parody.tecc.co.uk> (message from James Raynard on Fri, 29 Dec 1995 14:37:13 %2B0000 ())
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "James" == James Raynard <james@parody.tecc.co.uk> writes: James> The bit that really had me tearing my hair out was when I James> tried to use the suggested text filter - I kept getting James> errors 'execv of /usr/local/libexec/hpif failed'. After James> checking the paths and were correct, checking that the James> filter was world-readable and executable and successfully James> piping into and out of the filter by hand I was at a James> complete loss. Is it possible it was world-readable/executable but NOT owner-readable/executable, and the owner was daemon? (Or NOT group-readable/executable and the group was daemon?) That would prevent LPD from executing the filter. (That's an effective way to exclude a user/group from executing a certain file while enabling everyone else to do so.) Did you try running the filter script yourself, by hand? As root, by hand? James> It did cross my mind that it could be a problem with James> something being setuid. The filter doesn't need to be setuid/setgid. James> However, the Handbook says that the text filter is run by James> lpd, which is not setuid or setgid on my system, so I James> assumed it was something else. Probably, but I'm not sure what. James> As I had by now completely run out of ideas, I compiled a C James> program which did the same as hpif. This worked! I think it *has* to be the permissions on the script. Perhaps it was something like -rw-rw-rwx 1 daemon daemon 1294 hpif Instead of -r-xr-xr-x 1 daemon daemon 1294 hpif The former means anyone but daemon and those in group daemon can run the script. The latter means everyone can run the script. -- Sean Kelly NOAA Forecast Systems Laboratory, Boulder Colorado USA I used to be a narrator for bad mimes. -- Steven Wright
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9601032045.AA10768>