Are there any problems printing files in /afs?
The issue of printing in AFS is almost always the same: what do you send to the printing daemon? Do you send it the bytes you want to print or do you just send the file name containing those bytes? If you send it a file name, you have to be sure that the printing daemon can read it. Most daemons run with no AFS tokens, so can’t access directories unless they are open for system:anyuser read access. Often, printing commands (lpr, lp, enq) have an option that allows for both modes of operation, though the default behavior varies from system to system. If you’re interested in making your daemons authenticate to AFS, check out the example scripts in AFS-Contrib: • file:///afs/transarc.com/public/afs-contrib/tools/reauth-example • ftp://ftp.transarc.com/pub/afs-contrib/tools/reauth-example/MANIFEST Another common problem is setuid printing commands. For instance, the “enq” command runs as root, daemon, or some such user. If you aren’t using the AFS login and simply issue “klog” to get token