个人工具
登录
查看“UbuntuHelp:Swat”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Swat”的源代码
来自Ubuntu中文
←
UbuntuHelp:Swat
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/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. * ''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. === 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 # 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 } </nowiki></pre> *#4 Exit and Save === 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 === 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 <pre><nowiki> sudo apt-get install xinetd sudo update-inetd --enable 'swat' </nowiki></pre> 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. ''kudos to fabioleitao for the answer, http://ubuntuforums.org/showpost.php?p=980625&postcount=8'' ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Swat
。