From owner-freebsd-questions Sat May 1 14:31:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from revolution.3-cities.com (revolution.3-cities.com [204.203.224.155]) by hub.freebsd.org (Postfix) with ESMTP id C64E914DB6 for ; Sat, 1 May 1999 14:31:04 -0700 (PDT) (envelope-from kstewart@3-cities.com) Received: from 3-cities.com (kenn1129.bossig.com [208.26.241.129]) by revolution.3-cities.com (8.8.5/8.7.3) with ESMTP id OAA16363; Sat, 1 May 1999 14:31:00 -0700 (PDT) Message-ID: <372B7286.E2AF471E@3-cities.com> Date: Sat, 01 May 1999 14:30:46 -0700 From: Kent Stewart Reply-To: kstewart@3-cities.com Organization: Columbia Basin Virtual Community Project X-Mailer: Mozilla 4.51 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Gary Kline Cc: questions@FreeBSD.ORG Subject: Re: printjob.c References: <199905012100.OAA12963@athena.tera.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gary Kline wrote: > > According to Kent Stewart: > > > > > > Gary Kline wrote: > > > > > > Further examination of my lpr problems have turned up > > > some strange results. > > > > > > As root, lptest > /dev/lpt0 > > > > > > spits out essentially blank pages; it prints one test line > > > and quits. As myself, I run into permission problems. > > > > > > catting a file ( as root ) to /dev/lpt0 seems to work > > > in very slowmotion which would seem to indicate some screwup > > > in the BIOS setup. > > Mis-statement: > > # cat file > /dev/lpt0 > > printf ``file'' (with staircase); with it's usual > hesitation.. > > > > > > > lpq always shows `no entries'. > > > > > > The "cannot exevc %s" string is coming from an execv() > > > failure in lpr/lpr/printjob.c, but that's about it. > > > > > > Ideas, printer wizards?? > > > > You created your filter or etc as root and didn't chmod it so a user > > could run it. > > > > I don't think so:: > > pe 13:44 [982] ll printcap /etc > 2 -rw-r--r-- 1 root wheel 291 Jun 6 1998 printcap > > and in /usr/local/libexec, hpif is 0555 > > -r-xr-xr-x 1 kline kline 499 May 1 10:43 hpif > > This hpif isn't the original, but it ought to > work. At least with lpr. But zero. > > I figure that the trouble has something to do > with lpr, but I can't imagine what: > > tao# cd /usr/bin;ll lpr > /usr/bin > -r-sr-sr-x 1 root daemon 20480 Mar 24 1998 lpr > tao# file lpr > lpr: setuid setgid FreeBSD/i386 compact demand paged dynamically linked executable > > lpr looks undamaged. There are no locks in > /var/spool/output. > > What am I missing? My printcap file has a filter lj.sh and it is setup as -rwxr-xr-x 1 root daemon 65 Apr 30 12:45 lj.sh I figured you had something like that and it didn't have any user rights. Kent -- Kent Stewart Richland, WA mailto:kstewart@3-cities.com http://www.3-cities.com/~kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message