1 .\" This manpage has been automatically generated by docbook2man-spec
2 .\" from a DocBook document. docbook2man-spec can be found at:
3 .\" <http://shell.ipoline.com/~elmert/hacks/docbook2X/>
4 .\" Please send any bug reports, improvements, comments, patches,
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH SWAT 8 "17 Apr 2001" "swat 2.2.0"
8 swat \- Samba Web Administration Tool
11 \fBnmblookup\fR [ \fB-s <smb config file>\fR ] [ \fB-a\fR ]
14 This tool is part of the Sambasuite.
16 \fBswat\fR allows a Samba administrator to
17 configure the complex \fI smb.conf(5)\fRfile via a Web browser. In addition,
18 a \fBswat\fR configuration page has help links
19 to all the configurable options in the smb.conf file allowing an
20 administrator to easily look up the effects of any change.
22 swat is run from inetd
25 \fB-s smb configuration file\fR
26 The default configuration file path is
27 determined at compile time. The file specified contains
28 the configuration details required by the \fBsmbd
29 \fRserver. This is the file that swat will modify.
30 The information in this file includes server-specific
31 information such as what printcap file to use, as well as
32 descriptions of all the services that the server is to provide.
33 See \fIsmb.conf\fR for more information.
36 This option disables authentication and puts
37 swat in demo mode. In that mode anyone will be able to modify
40 \fBDo NOT enable this option on a production
44 After you compile SWAT you need to run \fBmake install
45 \fRto install the \fBswat\fR binary
46 and the various help files and images. A default install would put
50 /usr/local/samba/bin/swat
53 /usr/local/samba/swat/images/*
56 /usr/local/samba/swat/help/*
57 .SS "INETD INSTALLATION"
59 You need to edit your \fI/etc/inetd.conf
60 \fRand \fI/etc/services\fR
61 to enable SWAT to be launched via inetd.
63 In \fI/etc/services\fR you need to
68 Note for NIS/YP users - you may need to rebuild the
69 NIS service maps rather than alter your local \fI /etc/services\fR file.
71 the choice of port number isn't really important
72 except that it should be less than 1024 and not currently
73 used (using a number above 1024 presents an obscure security
74 hole depending on the implementation details of your
77 In \fI/etc/inetd.conf\fR you should
80 \fBswat stream tcp nowait.400 root
81 /usr/local/samba/bin/swat swat\fR
83 One you have edited \fI/etc/services\fR
84 and \fI/etc/inetd.conf\fR you need to send a
85 HUP signal to inetd. To do this use \fBkill -1 PID
86 \fRwhere PID is the process ID of the inetd daemon.
89 To launch swat just run your favorite web browser and
90 point it at "http://localhost:901/".
92 Note that you can attach to swat from any IP connected
93 machine but connecting from a remote machine leaves your
94 connection open to password sniffing as passwords will be sent
95 in the clear over the wire.
98 \fB\fI/etc/inetd.conf\fB\fR
99 This file must contain suitable startup
100 information for the meta-daemon.
102 \fB\fI/etc/services\fB\fR
103 This file must contain a mapping of service name
104 (e.g., swat) to service port (e.g., 901) and protocol type
107 \fB\fI/usr/local/samba/lib/smb.conf\fB\fR
108 This is the default location of the \fIsmb.conf(5)
109 \fRserver configuration file that swat edits. Other
110 common places that systems install this file are \fI /usr/samba/lib/smb.conf\fR and \fI/etc/smb.conf
111 \fR\&. This file describes all the services the server
112 is to make available to clients.
115 \fBswat\fR will rewrite your \fIsmb.conf
116 \fRfile. It will rearrange the entries and delete all
117 comments, \fIinclude=\fR and \fIcopy="
118 \fRoptions. If you have a carefully crafted \fI smb.conf\fR then back it up or don't use swat!
121 This man page is correct for version 2.2 of
127 smb.conf(5).SH "AUTHOR"
129 The original Samba software and related utilities
130 were created by Andrew Tridgell. Samba is now developed
131 by the Samba Team as an Open Source project similar
132 to the way the Linux kernel is developed.
134 The original Samba man pages were written by Karl Auer.
135 The man page sources were converted to YODL format (another
136 excellent piece of Open Source software, available at
137 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
138 release by Jeremy Allison. The conversion to DocBook for
139 Samba 2.2 was done by Gerald Carter