source: branches/samba-3.0/docs/manpages/swat.8@ 104

Last change on this file since 104 was 44, checked in by Paul Smedley, 18 years ago

Update source to 3.0.25b

File size: 6.7 KB
Line 
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "SWAT" 8 "" "" ""
21.SH "NAME"
22swat - Samba Web Administration Tool
23.SH "SYNOPSIS"
24.HP 1
25swat [-s <smb config file>] [-a] [-P]
26.SH "DESCRIPTION"
27.PP
28This tool is part of the
29\fBsamba\fR(7)
30suite.
31.PP
32swat
33allows a Samba administrator to configure the complex
34\fBsmb.conf\fR(5)
35file via a Web browser. In addition, a
36swat
37configuration page has help links to all the configurable options in the
38\fIsmb.conf\fR
39file allowing an administrator to easily look up the effects of any change.
40.PP
41swat
42is run from
43inetd
44.SH "OPTIONS"
45.PP
46-s smb configuration file
47.RS 3n
48The default configuration file path is determined at compile time. The file specified contains the configuration details required by the
49\fBsmbd\fR(8)
50server. This is the file that
51swat
52will modify. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See
53\fIsmb.conf\fR
54for more information.
55.RE
56.PP
57-a
58.RS 3n
59This option disables authentication and places
60swat
61in demo mode. In that mode anyone will be able to modify the
62\fIsmb.conf\fR
63file.
64.sp
65\fBWARNING: Do NOT enable this option on a production server. \fR
66.RE
67.PP
68-P
69.RS 3n
70This option restricts read-only users to the password management page.
71swat
72can then be used to change user passwords without users seeing the "View" and "Status" menu buttons.
73.RE
74.PP
75-V
76.RS 3n
77Prints the program version number.
78.RE
79.PP
80-s <configuration file>
81.RS 3n
82The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See
83\fIsmb.conf\fR
84for more information. The default configuration file name is determined at compile time.
85.RE
86.PP
87-d|--debuglevel=level
88.RS 3n
89\fIlevel\fR
90is an integer from 0 to 10. The default value if this parameter is not specified is zero.
91.sp
92The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of information about operations carried out.
93.sp
94Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.
95.sp
96Note that specifying this parameter here will override the
97
98parameter in the
99\fIsmb.conf\fR
100file.
101.RE
102.PP
103-l|--logfile=logdirectory
104.RS 3n
105Base directory name for log/debug files. The extension
106\fB".progname"\fR
107will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never removed by the client.
108.RE
109.PP
110-h|--help
111.RS 3n
112Print a summary of command line options.
113.RE
114.SH "INSTALLATION"
115.PP
116Swat is included as binary package with most distributions. The package manager in this case takes care of the installation and configuration. This section is only for those who have compiled swat from scratch.
117.PP
118After you compile SWAT you need to run
119make install
120to install the
121swat
122binary and the various help files and images. A default install would put these in:
123.TP 3n
124\(bu
125/usr/local/samba/sbin/swat
126.TP 3n
127\(bu
128/usr/local/samba/swat/images/*
129.TP 3n
130\(bu
131/usr/local/samba/swat/help/*
132.SS "Inetd Installation"
133.PP
134You need to edit your
135\fI/etc/inetd.conf \fR
136and
137\fI/etc/services\fR
138to enable SWAT to be launched via
139inetd.
140.PP
141In
142\fI/etc/services\fR
143you need to add a line like this:
144.PP
145swat 901/tcp
146.PP
147Note for NIS/YP and LDAP users - you may need to rebuild the NIS service maps rather than alter your local
148\fI /etc/services\fR
149file.
150.PP
151the choice of port number isn't really important except that it should be less than 1024 and not currently used (using a number above 1024 presents an obscure security hole depending on the implementation details of your
152inetd
153daemon).
154.PP
155In
156\fI/etc/inetd.conf\fR
157you should add a line like this:
158.PP
159swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat
160.PP
161Once you have edited
162\fI/etc/services\fR
163and
164\fI/etc/inetd.conf\fR
165you need to send a HUP signal to inetd. To do this use
166kill -1 PID
167where PID is the process ID of the inetd daemon.
168.SH "LAUNCHING"
169.PP
170To launch SWAT just run your favorite web browser and point it at "http://localhost:901/".
171.PP
172Note that you can attach to SWAT from any IP connected machine but connecting from a remote machine leaves your connection open to password sniffing as passwords will be sent in the clear over the wire.
173.SH "FILES"
174.PP
175\fI/etc/inetd.conf\fR
176.RS 3n
177This file must contain suitable startup information for the meta-daemon.
178.RE
179.PP
180\fI/etc/services\fR
181.RS 3n
182This file must contain a mapping of service name (e.g., swat) to service port (e.g., 901) and protocol type (e.g., tcp).
183.RE
184.PP
185\fI/usr/local/samba/lib/smb.conf\fR
186.RS 3n
187This is the default location of the
188\fBsmb.conf\fR(5)
189server configuration file that swat edits. Other common places that systems install this file are
190\fI /usr/samba/lib/smb.conf\fR
191and
192\fI/etc/smb.conf \fR. This file describes all the services the server is to make available to clients.
193.RE
194.SH "WARNINGS"
195.PP
196swat
197will rewrite your
198\fBsmb.conf\fR(5)
199file. It will rearrange the entries and delete all comments,
200\fIinclude=\fR
201and
202\fIcopy= \fR
203options. If you have a carefully crafted
204\fI smb.conf\fR
205then back it up or don't use swat!
206.SH "VERSION"
207.PP
208This man page is correct for version 3.0 of the Samba suite.
209.SH "SEE ALSO"
210.PP
211inetd(5),
212\fBsmbd\fR(8),
213\fBsmb.conf\fR(5)
214.SH "AUTHOR"
215.PP
216The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.
217.PP
218The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at
219ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.
220
Note: See TracBrowser for help on using the repository browser.