1 .\" $NetBSD: pcnfsd.8,v 1.7 2002/01/19 11:45:00 wiz Exp $
2 .\" @(#) @(#)pcnfsd.8c 1.1 9/3/91;
3 .TH RPC.PCNFSD 8 "25 April 1991"
5 pcnfsd, rpc.pcnfsd \- (PC)NFS authentication and print request server
7 .B /usr/sbin/rpc.pcnfsd
13 server that supports Sun ONC clients on PC (DOS, OS/2, Macintosh, and other)
14 systems. This page describes version two of the
23 superdaemon. It reads the configuration file
25 if present, and then services RPC requests directed to
26 program number 150001. This release of the
28 daemon supports both version 1 and version 2 of the pcnfsd
33 for details of the protocols.
35 The requests serviced by
37 fall into three categories: authentication, printing, and other. Only the
38 authentication and printing services have administrative significance.
46 request\**, it will "log in" the user by validating the username and
47 password and returning the corresponding uid, gids, home directory,
52 compile-time option, it will also append a record to the
54 data base. If you do not wish to record PC "logins" in this way,
55 you should add a line of the form
67 supports a printing model based on the use of NFS to transfer
68 the actual print data from the client to the server. The client system
73 request, and the server returns the path to a spool directory which
74 the client may use and which is exported by NFS.
76 creates a subdirectory for each of its clients: the parent
79 and the subdirectory is the hostname of the client system.
80 If you wish to use a different parent directory, you should add a
84 \fBspooldir\fP \fIpath\fP
91 Once a client has mounted the spool directory using NFS
92 and has transferred print data to a file in this directory, it
99 handles this, and most other print-related requests, by
100 constructing a command based on the printing services of
101 the server operating system and executing the command using the
102 identity of the PC user. Since this involves set-user-id privileges,
106 Every print request from the client includes the name of the printer
107 which is to be used. In SunOS, this name corresponds to a printer
109 .BR /etc/printcap (5)
110 database. If you wish to define a non-standard way of processing
111 print data, you should define a new printer and arrange for the
112 client to print to this printer. There are two ways of setting up a new printer.
113 The first involves the addition of an entry to
114 .BR /etc/printcap (5)
115 and the creation of filters to perform the required processing. This
116 is outside the scope of this discussion. In addition,
118 includes a mechanism by which you can define virtual printers known
121 clients. Each printer is defined by a line in the
123 file of the following form
126 \fBprinter\fP \fIname alias-for command\fP
129 \fIname\fP is the name of the printer you want to define. \fIalias-for\fP
130 is the name of a "real" printer which corresponds to this printer. For
131 example, a request to
132 display the queue for \fIname\fP will be translated into the
133 corresponding request for the printer \fIalias-for\fP. If you have
134 defined a printer in such a way that there is no "real" printer to
135 which it corresponds, use a single "-" for this field. (See the
136 definition of the printer
138 below for an example.) \fIcommand\fP is a
139 command which will be executed whenever a file is printed on \fIname\fP.
140 This command is executed by the Bourne shell,
144 option. For complex operations you should
145 construct an executable shell program and invoke that in \fIcommand\fP.
146 Within \fIcommand\fP the following tokens will be replaced:
153 Replaced by the full path name of the print data file. When
154 the command has been executed, the file will be unlinked.
157 Replaced by the username of the user logged in to the client system.
160 Replaced by the host name of the client system.
162 Consider the following example
167 printer rotated lw /usr/local/bin/enscript -2r \s-2$FILE\s0
169 printer test - /usr/bin/cp \s-2$FILE\s0 /usr/tmp/\s-2$HOST\s0-\s-2$USER\s0
172 If a client system prints a job on the printer
176 will be invoked to pre-process the file \s-2$FILE\s0. In this
179 option causes the file to be printed in two-column rotated format
180 on the default PostScript\(rg printer.
181 If the client requests a list of the print queue for the printer
185 daemon will translate this into a request for a listing for
191 is used only for testing. Any file sent to this printer
194 Any request to list the queue, check the status, etc. of printer
196 will be rejected because the \fIalias-for\fP has been specified as "-".
204 default print spool directory
212 source code is distributed by Sun Microsystems, Inc. with their
214 product under terms described in common.h in that source code.
215 Those terms require that you be informed that this version of
217 was modified to run on NetBSD and is NOT supported by Sun.