Initial version imported to CVS
[kai/samba.git] / docs / manpages / testprns.1
1 .TH TESTPRNS 1 17/1/1995 testprns testprns
2 .SH NAME
3 testprns \- check printer name for validity with smbd
4 .SH SYNOPSIS
5 .B testprns
6 .I printername
7 [
8 .I printcapname
9 ]
10 .SH DESCRIPTION
11 This program is part of the Samba suite.
12
13 .B testprns
14 is a very simple test program to determine whether a given 
15 printer name is valid for use in a service to be provided by
16 .B smbd.
17
18 "Valid" in this context means "can be found in the printcap specified". This
19 program is very stupid - so stupid in fact that it would be wisest to always
20 specify the printcap file to use.
21 .SH OPTIONS
22 .I printername
23
24 .RS 3
25 The printer name to validate.
26
27 Printer names are taken from the first field in each record in the printcap
28 file, single printer names and sets of aliases separated by vertical bars
29 ("|") are recognised. Note that no validation or checking of the printcap
30 syntax is done beyond that required to extract the printer name. It may
31 be that the print spooling system is more forgiving or less forgiving
32 than 
33 .B testprns
34 however if
35 .B testprns
36 finds the printer then smbd should do as well.
37
38 .RE
39
40 .I printcapname
41
42 .RS 3
43 This is the name of the printcap file to search for the given printer name
44 in.
45
46 If no printcap name is specified,
47 .B testprns
48 will attempt to scan the printcap file specified at compile time 
49 (PRINTCAP_NAME).
50 .RE
51 .SH FILES
52 .B /etc/printcap
53 .RS 3
54 This is usually the default printcap file to scan. See
55 .B printcap(5)).
56 .RE
57 .SH ENVIRONMENT VARIABLES
58 Not applicable.
59
60 .SH INSTALLATION
61 The location of the server and its support files is a matter for individual
62 system administrators. The following are thus suggestions only.
63
64 It is recommended that the
65 .B testprns
66 program be installed under the /usr/local hierarchy, in a directory readable
67 by all, writeable only by root. The program should be executable by all.
68 The program should NOT be setuid or setgid!
69 .SH VERSION
70 This man page is (mostly) correct for version 1.9.00 of the Samba suite, plus some
71 of the recent patches to it. These notes will necessarily lag behind 
72 development of the software, so it is possible that your version of 
73 the program has extensions or parameter semantics that differ from or are not 
74 covered by this man page. Please notify these to the address below for 
75 rectification.
76 .SH SEE ALSO
77 .B printcap(5),
78 .B smbd(8), 
79 .B smbclient(1)
80 .SH DIAGNOSTICS
81 If a printer is found to be valid, the message "Printer name <printername> is 
82 valid" will be displayed.
83
84 If a printer is found to be invalid, the message "Printer name <printername> 
85 is not valid" will be displayed.
86
87 All messages that would normally be logged during operation of smbd are
88 logged by this program to the file
89 .I test.log
90 in the current directory. The program runs at debuglevel 3, so quite extensive
91 logging information is written. The log should be checked carefully for errors
92 and warnings.
93
94 Other messages are self-explanatory.
95 .SH BUGS
96 None known.
97 .SH CREDITS
98 The original Samba software and related utilities were created by 
99 Andrew Tridgell (samba-bugs@anu.edu.au). Andrew is also the Keeper
100 of the Source for this project.
101
102 The testprns program and this man page were written by Karl Auer
103 (Karl.Auer@anu.edu.au)
104
105 See
106 .B samba(7) for a full list of contributors and details of how to 
107 submit bug reports, comments etc.