1mailto(samba@samba.org) 2 3manpage(swat htmlcommand((8)))(8)(23 Oct 1998)(Samba)(SAMBA) 4 5label(NAME) 6manpagename(swat)(Samba Web Administration Tool) 7 8label(SYNOPSIS) 9manpagesynopsis() 10 11bf(swat) [link(-s smb config file)(minuss)] [link(-a)(minusa)] 12 13label(DESCRIPTION) 14manpagedescription() 15 16This program is part of the bf(Samba) suite. 17 18bf(swat) allows a Samba administrator to configure the complex 19url(bf(smb.conf))(smb.conf.5.html) file via a Web browser. In 20addition, a swat configuration page has help links to all the 21configurable options in the url(bf(smb.conf))(smb.conf.5.html) file 22allowing an administrator to easily look up the effects of any change. 23 24bf(swat) is run from bf(inetd) 25 26label(OPTIONS) 27manpageoptions() 28 29startdit() 30 31label(minuss) 32dit(bf(-s smb configuration file)) The default configuration file path is 33determined at compile time. 34 35The file specified contains the configuration details required by the 36url(bf(smbd))(smbd.8.html) server. This is the file that bf(swat) will 37modify. The information in this file includes server-specific 38information such as what printcap file to use, as well as descriptions 39of all the services that the server is to provide. See url(smb.conf 40(5))(smb.conf.5.html) for more information. 41 42label(minusa) 43dit(bf(-a)) 44 45This option disables authentication and puts bf(swat) in demo mode. In 46that mode anyone will be able to modify the 47url(bf(smb.conf))(smb.conf.5.html) file. 48 49Do NOT enable this option on a production server. 50 51endit() 52 53label(INSTALLATION) 54manpagesection(INSTALLATION) 55 56After you compile SWAT you need to run tt("make install") to install the 57swat binary and the various help files and images. A default install 58would put these in: 59 60verb( 61/usr/local/samba/bin/swat 62/usr/local/samba/swat/images/* 63/usr/local/samba/swat/help/* 64) 65 66label(INETD) 67manpagesection(INETD INSTALLATION) 68 69You need to edit your tt(/etc/inetd.conf) and tt(/etc/services) to 70enable bf(SWAT) to be launched via inetd. 71 72In tt(/etc/services) you need to add a line like this: 73 74tt(swat 901/tcp) 75 76Note for NIS/YP users - you may need to rebuild the NIS service maps 77rather than alter your local tt(/etc/services) file. 78 79the choice of port number isn't really important except that it should 80be less than 1024 and not currently used (using a number above 1024 81presents an obscure security hole depending on the implementation 82details of your bf(inetd) daemon). 83 84In tt(/etc/inetd.conf) you should add a line like this: 85 86tt(swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat) 87 88One you have edited tt(/etc/services) and tt(/etc/inetd.conf) you need 89to send a HUP signal to inetd. To do this use tt("kill -1 PID") where 90PID is the process ID of the inetd daemon. 91 92label(LAUNCHING) 93manpagesection(LAUNCHING) 94 95To launch bf(swat) just run your favorite web browser and point it at 96tt(http://localhost:901/). 97 98bf(Note that you can attach to bf(swat) from any IP connected machine but 99connecting from a remote machine leaves your connection open to 100password sniffing as passwords will be sent in the clear over the 101wire.) 102 103manpagefiles() 104 105bf(/etc/inetd.conf) 106 107This file must contain suitable startup information for the 108meta-daemon. 109 110bf(/etc/services) 111 112This file must contain a mapping of service name (e.g., swat) to 113service port (e.g., 901) and protocol type (e.g., tcp). 114 115bf(/usr/local/samba/lib/smb.conf) 116 117This is the default location of the em(smb.conf) server configuration 118file that bf(swat) edits. Other common places that systems install 119this file are em(/usr/samba/lib/smb.conf) and em(/etc/smb.conf). 120 121This file describes all the services the server is to make available 122to clients. See bf(smb.conf (5)) for more information. 123 124label(WARNINGS) 125manpagesection(WARNINGS) 126 127bf(swat) will rewrite your url(bf(smb.conf))(smb.conf.5.html) file. It 128will rearrange the entries and delete all comments, 129url(bf("include="))(smb.conf.5.html#include) and 130url(bf("copy="))(smb.conf.5.html#copy) options. If you have a 131carefully crafted url(bf(smb.conf))(smb.conf.5.html) then back it up 132or don't use bf(swat)! 133 134label(VERSION) 135manpagesection(VERSION) 136 137This man page is correct for version 2.0 of the Samba suite. 138 139label(SEEALSO) 140manpageseealso() 141 142bf(inetd (8)), url(bf(nmbd (8)))(nmbd.8.html), 143url(bf(smb.conf (5)))(smb.conf.5.html). 144 145label(AUTHOR) 146manpageauthor() 147 148The original Samba software and related utilities were created by 149Andrew Tridgell (samba@samba.org). Samba is now developed 150by the Samba Team as an Open Source project similar to the way the 151Linux kernel is developed. 152 153The original Samba man pages were written by Karl Auer. The man page 154sources were converted to YODL format (another excellent piece of Open 155Source software, available at 156url(bf(ftp://ftp.icce.rug.nl/pub/unix/))(ftp://ftp.icce.rug.nl/pub/unix/)) 157and updated for the Samba2.0 release by Jeremy Allison. 158email(samba@samba.org). 159 160See url(bf(samba (7)))(samba.7.html) to find out how to get a full 161list of contributors and details on how to submit bug reports, 162comments etc. 163