Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Mark & Suzanne (gcs might work)" <NOSPAMPLS@s054.aone.net.au>
Subject: Re: cap60 on Digital Unix 4.0D
Date: 1998/05/20	[thread overview]
Message-ID: <3562DD60.167E@s054.aone.net.au> (raw)
In-Reply-To: 35619EF4.E9249600@math.ist.utl.pt


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 :)



      reply	other threads:[~1998-05-20  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-19  4:00 cap60 on Digital Unix 4.0D Joao Palhoto Matos
1998-05-20  4:00 ` Mark & Suzanne (gcs might work) [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox