特殊:Badtitle/NS100:Swat:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
第14行: 第14行:
service swat
service swat
{
{
port    = 901
        port    = 901
socket_type    = stream
        socket_type    = stream
wait    = no
        wait    = no
only_from = localhost
        only_from = localhost
user    = root
        user    = root
server  = /usr/sbin/swat
        server  = /usr/sbin/swat
log_on_failure  += USERID
        log_on_failure  += USERID
disable = no
        disable = no
}
}
</nowiki></pre>
</nowiki></pre>

2007年12月6日 (四) 10:55的版本

{{#ifexist: :Swat/zh | | {{#ifexist: Swat/zh | | {{#ifeq: {{#titleparts:Swat|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Swat|1|-1|}} | zh | | }}

From the swat man page: swat allows a Samba administrator to configure the complex smb.conf file via a Web browser. In addition, a swat configuration page has help links to all the configurable options in the smb.conf file allowing an administrator to easily look up the effects of any change.

Installing Swat

  1. sudo apt-get install swat
  2. sudo nano /etc/xinetd.d/swat
  3. Insert the following text (borrowed from http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd):
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
service swat
{
        port    = 901
        socket_type     = stream
        wait    = no
        only_from = localhost
        user    = root
        server  = /usr/sbin/swat
        log_on_failure  += USERID
        disable = no
}

1.#4 Exit and Save

Running Swat

  1. sudo /etc/init.d/xinetd restart
  2. Point your browser to http://localhost:901/
  3. Enter the username and password of a user with proper privileges

Questions

Q: my feisty system doesn't have /etc/xinetd.d/, now what? A: you will need to install a dependency beforehand: xinetd

sudo apt-get install xinetd
sudo update-inetd --enable 'swat'

then create the /etc/xinetd.d/swat as above, and now sudo dpkg-reconfigure xinetd to restart with the new configuration. kudos to fabioleitao for the answer, http://ubuntuforums.org/showpost.php?p=980625&postcount=8 Q: The swat help links do not work. How do I tell swat where to find the man pages?