11.10. Printing to AppleTalk Printers

The netatalk package comes with the pap program that can be used to transfer jobs using the AppleTalk protocol. A printcap entry for a network printer looks like the following:

    atalk:
      :lp=| -$ /usr/local/atalk/bin/pap -e -p "npbname"
      :sd=/var/spool/lpd/atalk
      :ifhp=model=ps,status@
      :filter=/usr/local/libexec/filters/ifhp


The -$ suppress the addition of extra parameters to the pap command line. The pap program must be SETUID root and executable only by root or group daemon. This can be done by using the following script:

    h4: {309} cd /usr/local/atalk/bin
    h4: {310} chown root pap
    h4: {311} chgrp daemon pap
    h4: {312} chmod 550 pap
    h4: {313} chmod s+u pap