“UbuntuHelp:Swat”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:Swat}} | {{Languages|UbuntuHelp:Swat}} | ||
''From the [http://samba.org/samba/docs/man/manpages-3/swat.8.html swat man page]:'' swat allows a [[UbuntuHelp:SettingUpSamba|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. | ''From the [http://samba.org/samba/docs/man/manpages-3/swat.8.html swat man page]:'' swat allows a [[UbuntuHelp:SettingUpSamba|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 and running [[UbuntuHelp:SettingUpSamba|Samba]] is outside the scope of this document.'' | * ''Installing and running [[UbuntuHelp:SettingUpSamba|Samba]] is outside the scope of this document.'' | ||
* ''How to actually use Swat is outside the scope of this document, but [http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#id2651818 http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#id2651818] is a good place to get started. | * ''How to actually use Swat is outside the scope of this document, but [http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#id2651818 http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#id2651818] is a good place to get started. | ||
− | |||
=== Installing Swat === | === Installing Swat === | ||
− | + | # <code><nowiki>sudo apt-get install swat</nowiki></code> | |
− | + | # <code><nowiki>sudo nano /etc/xinetd.d/swat</nowiki></code> | |
− | + | # Insert the following text (borrowed from [http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd]): | |
<pre><nowiki># default: off | <pre><nowiki># default: off | ||
# description: SWAT is the Samba Web Admin Tool. Use swat \ | # description: SWAT is the Samba Web Admin Tool. Use swat \ | ||
第27行: | 第24行: | ||
} | } | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | 1.#4 Exit and Save | |
− | + | ||
=== Running Swat === | === Running Swat === | ||
− | + | # <code><nowiki>sudo /etc/init.d/xinetd restart</nowiki></code> | |
− | + | # Point your browser to [http://localhost:901/ http://localhost:901/] | |
− | + | # Enter the username and password of a user with proper privileges | |
---- | ---- | ||
− | |||
=== Questions === | === Questions === | ||
Q: my feisty system doesn't have <code><nowiki>/etc/xinetd.d/</nowiki></code>, now what? | Q: my feisty system doesn't have <code><nowiki>/etc/xinetd.d/</nowiki></code>, now what? | ||
− | |||
A: you will need to install a dependency beforehand: xinetd | A: you will need to install a dependency beforehand: xinetd | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install xinetd | sudo apt-get install xinetd | ||
第46行: | 第39行: | ||
then create the <code><nowiki>/etc/xinetd.d/swat</nowiki></code> as above, | then create the <code><nowiki>/etc/xinetd.d/swat</nowiki></code> as above, | ||
and now <code><nowiki>sudo dpkg-reconfigure xinetd</nowiki></code> to restart with the new configuration. | and now <code><nowiki>sudo dpkg-reconfigure xinetd</nowiki></code> to restart with the new configuration. | ||
− | |||
''kudos to fabioleitao for the answer, http://ubuntuforums.org/showpost.php?p=980625&postcount=8'' | ''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? | |
---- | ---- | ||
[[category:CategoryDocumentation]] | [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 21:38的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
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 and running Samba is outside the scope of this document.
- How to actually use Swat is outside the scope of this document, but http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#id2651818 is a good place to get started.
Installing Swat
-
sudo apt-get install swat
-
sudo nano /etc/xinetd.d/swat
- 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
-
sudo /etc/init.d/xinetd restart
- Point your browser to http://localhost:901/
- 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?