[862] | 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"
|
---|
| 31 | swat \- Samba Web Administration Tool
|
---|
| 32 | .SH "SYNOPSIS"
|
---|
| 33 | .HP \w'\ 'u
|
---|
| 34 | swat [\-s\ <smb\ config\ file>] [\-a] [\-P]
|
---|
| 35 | .SH "DESCRIPTION"
|
---|
| 36 | .PP
|
---|
| 37 | This tool is part of the
|
---|
| 38 | \fBsamba\fR(7)
|
---|
| 39 | suite\&.
|
---|
| 40 | .PP
|
---|
| 41 | swat
|
---|
| 42 | allows a Samba administrator to configure the complex
|
---|
| 43 | \fBsmb.conf\fR(5)
|
---|
| 44 | file via a Web browser\&. In addition, a
|
---|
| 45 | swat
|
---|
| 46 | configuration page has help links to all the configurable options in the
|
---|
| 47 | smb\&.conf
|
---|
| 48 | file allowing an administrator to easily look up the effects of any change\&.
|
---|
| 49 | .PP
|
---|
| 50 | swat
|
---|
| 51 | is run from
|
---|
| 52 | inetd
|
---|
| 53 | .SH "OPTIONS"
|
---|
| 54 | .PP
|
---|
| 55 | \-s smb configuration file
|
---|
| 56 | .RS 4
|
---|
| 57 | The default configuration file path is determined at compile time\&. The file specified contains the configuration details required by the
|
---|
| 58 | \fBsmbd\fR(8)
|
---|
| 59 | server\&. This is the file that
|
---|
| 60 | swat
|
---|
| 61 | will 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
|
---|
| 62 | smb\&.conf
|
---|
| 63 | for more information\&.
|
---|
| 64 | .RE
|
---|
| 65 | .PP
|
---|
| 66 | \-a
|
---|
| 67 | .RS 4
|
---|
| 68 | This option disables authentication and places
|
---|
| 69 | swat
|
---|
| 70 | in demo mode\&. In that mode anyone will be able to modify the
|
---|
| 71 | smb\&.conf
|
---|
| 72 | file\&.
|
---|
| 73 | .sp
|
---|
| 74 | \fIWARNING: Do NOT enable this option on a production server\&. \fR
|
---|
| 75 | .RE
|
---|
| 76 | .PP
|
---|
| 77 | \-P
|
---|
| 78 | .RS 4
|
---|
| 79 | This option restricts read\-only users to the password management page\&.
|
---|
| 80 | swat
|
---|
| 81 | can 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
|
---|
| 87 | is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
|
---|
| 88 | .sp
|
---|
| 89 | The 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
|
---|
| 91 | Levels 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
|
---|
| 93 | Note that specifying this parameter here will override the
|
---|
| 94 | \m[blue]\fBlog level\fR\m[]
|
---|
| 95 | parameter in the
|
---|
| 96 | smb\&.conf
|
---|
| 97 | file\&.
|
---|
| 98 | .RE
|
---|
| 99 | .PP
|
---|
| 100 | \-V|\-\-version
|
---|
| 101 | .RS 4
|
---|
| 102 | Prints the program version number\&.
|
---|
| 103 | .RE
|
---|
| 104 | .PP
|
---|
| 105 | \-s|\-\-configfile <configuration file>
|
---|
| 106 | .RS 4
|
---|
| 107 | The 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
|
---|
| 108 | smb\&.conf
|
---|
| 109 | for more information\&. The default configuration file name is determined at compile time\&.
|
---|
| 110 | .RE
|
---|
| 111 | .PP
|
---|
| 112 | \-l|\-\-log\-basename=logdirectory
|
---|
| 113 | .RS 4
|
---|
| 114 | Base directory name for log/debug files\&. The extension
|
---|
| 115 | \fB"\&.progname"\fR
|
---|
| 116 | will 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
|
---|
| 121 | Print a summary of command line options\&.
|
---|
| 122 | .RE
|
---|
| 123 | .SH "INSTALLATION"
|
---|
| 124 | .PP
|
---|
| 125 | Swat 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
|
---|
| 127 | After you compile SWAT you need to run
|
---|
| 128 | make install
|
---|
| 129 | to install the
|
---|
| 130 | swat
|
---|
| 131 | binary 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
|
---|
| 169 | You need to edit your
|
---|
| 170 | /etc/inetd\&.conf
|
---|
| 171 | and
|
---|
| 172 | /etc/services
|
---|
| 173 | to enable SWAT to be launched via
|
---|
| 174 | inetd\&.
|
---|
| 175 | .PP
|
---|
| 176 | In
|
---|
| 177 | /etc/services
|
---|
| 178 | you need to add a line like this:
|
---|
| 179 | .PP
|
---|
| 180 | swat 901/tcp
|
---|
| 181 | .PP
|
---|
| 182 | Note for NIS/YP and LDAP users \- you may need to rebuild the NIS service maps rather than alter your local
|
---|
| 183 | /etc/services
|
---|
| 184 | file\&.
|
---|
| 185 | .PP
|
---|
| 186 | the 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
|
---|
| 187 | inetd
|
---|
| 188 | daemon)\&.
|
---|
| 189 | .PP
|
---|
| 190 | In
|
---|
| 191 | /etc/inetd\&.conf
|
---|
| 192 | you should add a line like this:
|
---|
| 193 | .PP
|
---|
| 194 | swat stream tcp nowait\&.400 root /usr/local/samba/sbin/swat swat
|
---|
| 195 | .PP
|
---|
| 196 | Once you have edited
|
---|
| 197 | /etc/services
|
---|
| 198 | and
|
---|
| 199 | /etc/inetd\&.conf
|
---|
| 200 | you need to send a HUP signal to inetd\&. To do this use
|
---|
| 201 | kill \-1 PID
|
---|
| 202 | where PID is the process ID of the inetd daemon\&.
|
---|
| 203 | .SH "LAUNCHING"
|
---|
| 204 | .PP
|
---|
| 205 | To launch SWAT just run your favorite web browser and point it at "http://localhost:901/"\&.
|
---|
| 206 | .PP
|
---|
| 207 | Note 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
|
---|
| 212 | This file must contain suitable startup information for the meta\-daemon\&.
|
---|
| 213 | .RE
|
---|
| 214 | .PP
|
---|
| 215 | /etc/services
|
---|
| 216 | .RS 4
|
---|
| 217 | This 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
|
---|
| 222 | This is the default location of the
|
---|
| 223 | \fBsmb.conf\fR(5)
|
---|
| 224 | server configuration file that swat edits\&. Other common places that systems install this file are
|
---|
| 225 | /usr/samba/lib/smb\&.conf
|
---|
| 226 | and
|
---|
| 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
|
---|
| 231 | swat
|
---|
| 232 | will rewrite your
|
---|
| 233 | \fBsmb.conf\fR(5)
|
---|
| 234 | file\&. It will rearrange the entries and delete all comments,
|
---|
| 235 | \fIinclude=\fR
|
---|
| 236 | and
|
---|
| 237 | \fIcopy= \fR
|
---|
| 238 | options\&. If you have a carefully crafted
|
---|
| 239 | smb\&.conf
|
---|
| 240 | then back it up or don\*(Aqt use swat!
|
---|
| 241 | .SH "VERSION"
|
---|
| 242 | .PP
|
---|
| 243 | This man page is correct for version 3 of the Samba suite\&.
|
---|
| 244 | .SH "SEE ALSO"
|
---|
| 245 | .PP
|
---|
| 246 | inetd(5),
|
---|
| 247 | \fBsmbd\fR(8),
|
---|
| 248 | \fBsmb.conf\fR(5)
|
---|
| 249 | .SH "AUTHOR"
|
---|
| 250 | .PP
|
---|
| 251 | The 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
|
---|
| 253 | The 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
|
---|
| 254 | ftp://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\&.
|
---|