“UbuntuHelp:Swat”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Swat}} | {{From|https://help.ubuntu.com/community/Swat}} | ||
− | {{Languages| | + | {{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. | ||
第14行: | 第12行: | ||
# 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]): | # 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 | ||
− | |||
− | |||
− | |||
service swat | service swat | ||
{ | { | ||
第36行: | 第31行: | ||
# Enter the username and password of a user with proper priveledges | # Enter the username and password of a user with proper priveledges | ||
---- | ---- | ||
− | CategoryDocumentation | + | [[category:CategoryDocumentation]] |
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年5月14日 (一) 11:49的版本
点击翻译: |
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 service swat { port = 901 socket_type = stream wait = no only_from = localhost user = root server = /usr/sbin/swat log_on_failure += USERID disable = no }
- 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 priveledges