个人工具

UbuntuHelp:Swat

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月24日 (四) 14:46的版本

跳转至: 导航, 搜索

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

# 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 priveledges