个人工具

“UbuntuHelp:Swat”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/Swat}} {{Languages|php5}} #format wiki #language en ''From the [http://samba.org/samba/docs/man/manpages-3/swat.8.html swat man page]:'' swat allow...)
 
第10行: 第10行:
  
 
=== Installing Swat ===
 
=== Installing Swat ===
1. <code><nowiki>sudo apt-get install swat</nowiki></code>
+
# <code><nowiki>sudo apt-get install swat</nowiki></code>
1. <code><nowiki>sudo nano /etc/xinetd.d/swat</nowiki></code>
+
# <code><nowiki>sudo nano /etc/xinetd.d/swat</nowiki></code>
1. 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
 
# description: SWAT is the Samba Web Admin Tool. Use swat \
 
# description: SWAT is the Samba Web Admin Tool. Use swat \
第29行: 第29行:
 
}
 
}
 
</nowiki></pre>
 
</nowiki></pre>
1.#4 Exit and Save
+
##4 Exit and Save
  
 
=== Running Swat ===
 
=== Running Swat ===
1. <code><nowiki>sudo /etc/init.d/xinetd restart</nowiki></code>
+
# <code><nowiki>sudo /etc/init.d/xinetd restart</nowiki></code>
1. Point your browser to [http://localhost:901/ http://localhost:901/]
+
# Point your browser to [http://localhost:901/ http://localhost:901/]
1. Enter the username and password of a user with proper priveledges
+
# Enter the username and password of a user with proper priveledges
 
----
 
----
 
CategoryDocumentation
 
CategoryDocumentation
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年5月13日 (日) 16:31的版本

  1. format wiki
  2. language en

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 priveledges

CategoryDocumentation