source: vendor/3.6.23/docs/manpages/swat.8

Last change on this file was 860, checked in by Silvan Scherrer, 11 years ago

Samba 3.6: updated vendor to latest version

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