Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* cap60 on Digital Unix 4.0D
@ 1998-05-19  4:00 Joao Palhoto Matos
  1998-05-20  4:00 ` Mark & Suzanne (gcs might work)
  0 siblings, 1 reply; 2+ messages in thread
From: Joao Palhoto Matos @ 1998-05-19  4:00 UTC (permalink / raw)



Hi:

I would very much appreciate some help with configuring cap60 on Digital Unix
4.0D. The software apparently compiles and installs correctly, aarpd and atis
start, aufs is usable, lwpr is able to print but I have no luck so far with
papif. Printing to a papif printer fails with the following message:

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

Thanks,

Joao Palhoto Matos



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cap60 on Digital Unix 4.0D
  1998-05-19  4:00 cap60 on Digital Unix 4.0D Joao Palhoto Matos
@ 1998-05-20  4:00 ` Mark & Suzanne (gcs might work)
  0 siblings, 0 replies; 2+ messages in thread
From: Mark & Suzanne (gcs might work) @ 1998-05-20  4:00 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-05-20  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox