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

Last change on this file since 158 was 158, checked in by Paul Smedley, 17 years ago

Update source to 3.0.32

File size: 6.8 KB
Line 
1.\" Title: swat
2.\" Author:
3.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4.\" Date: 08/25/2008
5.\" Manual: System Administration tools
6.\" Source: Samba 3.0
7.\"
8.TH "SWAT" "8" "08/25/2008" "Samba 3\.0" "System Administration tools"
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14swat - Samba Web Administration Tool
15.SH "SYNOPSIS"
16.HP 1
17swat [\-s\ <smb\ config\ file>] [\-a] [\-P]
18.SH "DESCRIPTION"
19.PP
20This tool is part of the
21\fBsamba\fR(7)
22suite\.
23.PP
24swat
25allows a Samba administrator to configure the complex
26\fBsmb.conf\fR(5)
27file via a Web browser\. In addition, a
28swat
29configuration page has help links to all the configurable options in the
30\fIsmb\.conf\fR
31file allowing an administrator to easily look up the effects of any change\.
32.PP
33swat
34is run from
35inetd
36.SH "OPTIONS"
37.PP
38\-s smb configuration file
39.RS 4
40The default configuration file path is determined at compile time\. The file specified contains the configuration details required by the
41\fBsmbd\fR(8)
42server\. This is the file that
43swat
44will 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
45\fIsmb\.conf\fR
46for more information\.
47.RE
48.PP
49\-a
50.RS 4
51This option disables authentication and places
52swat
53in demo mode\. In that mode anyone will be able to modify the
54\fIsmb\.conf\fR
55file\.
56.sp
57\fIWARNING: Do NOT enable this option on a production server\. \fR
58.RE
59.PP
60\-P
61.RS 4
62This option restricts read\-only users to the password management page\.
63swat
64can then be used to change user passwords without users seeing the "View" and "Status" menu buttons\.
65.RE
66.PP
67\-d|\-\-debuglevel=level
68.RS 4
69\fIlevel\fR
70is an integer from 0 to 10\. The default value if this parameter is not specified is 0\.
71.sp
72The 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\.
73.sp
74Levels 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\.
75.sp
76Note that specifying this parameter here will override the
77\fIlog level\fR
78parameter in the
79\fIsmb\.conf\fR
80file\.
81.RE
82.PP
83\-V
84.RS 4
85Prints the program version number\.
86.RE
87.PP
88\-s <configuration file>
89.RS 4
90The 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
91\fIsmb\.conf\fR
92for more information\. The default configuration file name is determined at compile time\.
93.RE
94.PP
95\-l|\-\-log\-basename=logdirectory
96.RS 4
97Base directory name for log/debug files\. The extension
98\fB"\.progname"\fR
99will be appended (e\.g\. log\.smbclient, log\.smbd, etc\.\.\.)\. The log file is never removed by the client\.
100.RE
101.PP
102\-h|\-\-help
103.RS 4
104Print a summary of command line options\.
105.RE
106.SH "INSTALLATION"
107.PP
108Swat 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\.
109.PP
110After you compile SWAT you need to run
111make install
112to install the
113swat
114binary and the various help files and images\. A default install would put these in:
115.sp
116.RS 4
117.ie n \{\
118\h'-04'\(bu\h'+03'\c
119.\}
120.el \{\
121.sp -1
122.IP \(bu 2.3
123.\}
124/usr/local/samba/sbin/swat
125.RE
126.sp
127.RS 4
128.ie n \{\
129\h'-04'\(bu\h'+03'\c
130.\}
131.el \{\
132.sp -1
133.IP \(bu 2.3
134.\}
135/usr/local/samba/swat/images/*
136.RE
137.sp
138.RS 4
139.ie n \{\
140\h'-04'\(bu\h'+03'\c
141.\}
142.el \{\
143.sp -1
144.IP \(bu 2.3
145.\}
146/usr/local/samba/swat/help/*
147.sp
148.RE
149.SS "Inetd Installation"
150.PP
151You need to edit your
152\fI/etc/inetd\.conf \fR
153and
154\fI/etc/services\fR
155to enable SWAT to be launched via
156inetd\.
157.PP
158In
159\fI/etc/services\fR
160you need to add a line like this:
161.PP
162swat 901/tcp
163.PP
164Note for NIS/YP and LDAP users \- you may need to rebuild the NIS service maps rather than alter your local
165\fI /etc/services\fR
166file\.
167.PP
168the 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
169inetd
170daemon)\.
171.PP
172In
173\fI/etc/inetd\.conf\fR
174you should add a line like this:
175.PP
176swat stream tcp nowait\.400 root /usr/local/samba/sbin/swat swat
177.PP
178Once you have edited
179\fI/etc/services\fR
180and
181\fI/etc/inetd\.conf\fR
182you need to send a HUP signal to inetd\. To do this use
183kill \-1 PID
184where PID is the process ID of the inetd daemon\.
185.SH "LAUNCHING"
186.PP
187To launch SWAT just run your favorite web browser and point it at "http://localhost:901/"\.
188.PP
189Note 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\.
190.SH "FILES"
191.PP
192\fI/etc/inetd\.conf\fR
193.RS 4
194This file must contain suitable startup information for the meta\-daemon\.
195.RE
196.PP
197\fI/etc/services\fR
198.RS 4
199This file must contain a mapping of service name (e\.g\., swat) to service port (e\.g\., 901) and protocol type (e\.g\., tcp)\.
200.RE
201.PP
202\fI/usr/local/samba/lib/smb\.conf\fR
203.RS 4
204This is the default location of the
205\fBsmb.conf\fR(5)
206server configuration file that swat edits\. Other common places that systems install this file are
207\fI /usr/samba/lib/smb\.conf\fR
208and
209\fI/etc/smb\.conf \fR\. This file describes all the services the server is to make available to clients\.
210.RE
211.SH "WARNINGS"
212.PP
213swat
214will rewrite your
215\fBsmb.conf\fR(5)
216file\. It will rearrange the entries and delete all comments,
217\fIinclude=\fR
218and
219\fIcopy= \fR
220options\. If you have a carefully crafted
221\fI smb\.conf\fR
222then back it up or don\'t use swat!
223.SH "VERSION"
224.PP
225This man page is correct for version 3\.0 of the Samba suite\.
226.SH "SEE ALSO"
227.PP
228inetd(5),
229\fBsmbd\fR(8),
230\fBsmb.conf\fR(5)
231.SH "AUTHOR"
232.PP
233The 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\.
234.PP
235The 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
236ftp://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\.
Note: See TracBrowser for help on using the repository browser.