1 .\" This manpage has been automatically generated by docbook2man-spec
2 .\" from a DocBook document. docbook2man-spec can be found at:
3 .\" <http://shell.ipoline.com/~elmert/hacks/docbook2X/>
4 .\" Please send any bug reports, improvements, comments, patches,
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH TESTPRNS 1 "23 Jun 2001" "testprns 2.2.0a"
8 testprns \- check printer name for validity with smbd
11 \fBtestprns\fR \fBprintername\fR [ \fBprintcapname\fR ]
14 This tool is part of the Sambasuite.
16 \fBtestprns\fR is a very simple test program
17 to determine whether a given printer name is valid for use in
18 a service to be provided by \fB smbd(8)\fR.
20 "Valid" in this context means "can be found in the
21 printcap specified". This program is very stupid - so stupid in
22 fact that it would be wisest to always specify the printcap file
27 The printer name to validate.
29 Printer names are taken from the first field in each
30 record in the printcap file, single printer names and sets
31 of aliases separated by vertical bars ("|") are recognized.
32 Note that no validation or checking of the printcap syntax is
33 done beyond that required to extract the printer name. It may
34 be that the print spooling system is more forgiving or less
35 forgiving than \fBtestprns\fR. However, if
36 \fBtestprns\fR finds the printer then
37 \fBsmbd\fR should do so as well.
40 This is the name of the printcap file within
41 which to search for the given printer name.
43 If no printcap name is specified \fBtestprns
44 \fRwill attempt to scan the printcap file name
45 specified at compile time.
48 \fB\fI/etc/printcap\fB\fR
49 This is usually the default printcap
50 file to scan. See \fIprintcap (5)\fR.
53 If a printer is found to be valid, the message
54 "Printer name <printername> is valid" will be
57 If a printer is found to be invalid, the message
58 "Printer name <printername> is not valid" will be
61 All messages that would normally be logged during
62 operation of the Samba daemons are logged by this program to the
63 file \fItest.log\fR in the current directory. The
64 program runs at debuglevel 3, so quite extensive logging
65 information is written. The log should be checked carefully
66 for errors and warnings.
68 Other messages are self-explanatory.
71 This man page is correct for version 2.2 of
77 \fBsmbclient(1)\fR.SH "AUTHOR"
79 The original Samba software and related utilities
80 were created by Andrew Tridgell. Samba is now developed
81 by the Samba Team as an Open Source project similar
82 to the way the Linux kernel is developed.
84 The original Samba man pages were written by Karl Auer.
85 The man page sources were converted to YODL format (another
86 excellent piece of Open Source software, available at
87 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
88 release by Jeremy Allison. The conversion to DocBook for
89 Samba 2.2 was done by Gerald Carter