From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa8e5,4b46d698dc962e0d X-Google-Attributes: gidfa8e5,public X-Google-Thread: fee84,4b46d698dc962e0d X-Google-Attributes: gidfee84,public From: "Mark & Suzanne (gcs might work)" Subject: Re: cap60 on Digital Unix 4.0D Date: 1998/05/20 Message-ID: <3562DD60.167E@s054.aone.net.au>#1/1 X-Deja-AN: 354946817 Content-Transfer-Encoding: 7bit References: <35619EF4.E9249600@math.ist.utl.pt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Garetech Computer Solutions P/L Newsgroups: comp.protocols.appletalk,comp.unix.osf.osf1 Joao Palhoto Matos wrote: > > > open: tu0: Permission denied > NBPInit: DDPOpenSocket error 13 > papif: Starting job for root@lascas.math.ist.utl.pt at Tue May 19 14:54:42 1998 > on printer LWP-geometra-Piso4-Lab2:LaserWriter@EtherMatematica > NBP nbpFcn: nbpInit not called>> > Filter 'f' terminated (sig=104,err=-1) > > Entry in /etc/printcap is as follows: > > geo2:\ > :lp=/dev/geo2:\ > :lf=/usr/adm/papif-errs:\ > :mx#0:\ > :sf:\ > :if=/usr/local/cap/teste:\ > :sd=/usr/spool/lpd/cap/geo2: > > The teste shell script is simply: > > #!/sbin/sh > /usr/local/cap/papif -P geo2 $* > > Relevant file permissions in /usr/local/cap are: > > -rwxr-sr-x 1 root pf 147456 May 19 14:49 papif > -rwxr-sr-x 1 root pf 43 May 19 14:31 teste > > root and lp belong to group pf > > Finally > > -rw-rw---- 1 root daemon 2393 May 19 14:54 /dev/geo2 > Not sure why you went for the group pf thing but the papif and papof should be suid ROOT not sgid pf This is my config below ls -lag /usr/local/cap/pap[io]f ---s--x--x 1 root daemon 434176 Mar 20 00:38 papif ---s--x--x 1 root daemon 49152 Mar 20 00:38 papof /etc/printcap lw|0|lp|pro630|lwpro630|Administration Sydney Office:\ :lp=/dev/lwpro630:\ :sd=/var/spool/lpd/lwpro630:\ :sf:\ :sh:\ :mx#0:\ :lf=/var/log/lpd-errs:\ :af=/var/account/lwpro630-acct:\ :if=/usr/local/cap/lwpro630:\ :of=/usr/local/cap/papof: /etc/cap.printers # # Sydney Office Laserwriters # lwpro630=LaserWriter Pro 630:LaserWriter@* /usr/local/cap/lwpro630 #!/bin/sh # PSTEXT="/usr/local/bin/Ltextps" DOACCT="yes" BASENAME=/usr/bin/basename PRINTER=`$BASENAME $0` #STRIPCONTROLD=1 export PSTEXT PRINTER DOACCT #STRIPCONTROLD /usr/local/cap/papif -P $PRINTER $* /usr/local/bin/Ltextp #!/bin/sh exec /usr/local/bin/textps Makesure you have make the packet filter devices Cheers Mark :)