安装配置swat

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
bigbighill
帖子: 69
注册时间: 2006-07-12 16:02

安装配置swat

#1

帖子 bigbighill » 2006-08-16 14:45

1、apt-get install xinetd swat依赖xineed才能正常工作
2、sudo apt-get samba samba-common smbfs smbclient swat
3、修改inetd.conf
将 #<off># swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat
改为
swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat
4、新建swat文件 sudo vi /etc/xinetd.d/swat
内容如下:

代码: 全选

# description: SAMBA SWAT
service swat
{
disable = no
socket_type = stream
protocol = tcp
#should use a more limited user here
user = root
wait = no
server = /usr/sbin/swat
}

5、sudo dpkg-reconfigure xinetd
6、查看swat是否运行
运行命令: netstat -lt
如果出现tcp 0 0 *:swat *:* LISTEN,表示swat配置运行成功,正在监听
7、 http://localhost:901 大功告成! :D
998hongwei
帖子: 122
注册时间: 2006-10-12 6:02
来自: 亿万财富,始于脚下。

#2

帖子 998hongwei » 2007-01-18 21:57

谢谢了,,又学到东东了,,
头像
xc1427
帖子: 276
注册时间: 2008-10-11 4:11
来自: 瑞金无线电学校
联系:

Re: 安装配置swat

#3

帖子 xc1427 » 2009-01-08 18:45

我试过了。
对于原步骤可以改进:
第3步修改/etc/inetd.conf不需要。有第4步新建swat文件(sudo vi /etc/xinetd.d/swat)就够了。
第5步,sudo dpkg-reconfigure xinetd这个命令太激进了。更好的是sudo /etc/init.d/xinetd restart

其实除了xinetd外,也可用inetd。
这就需要安装netkit-inetd或inetutils-inetd了。配置步骤和xinetd相同。
You never know if you don't try
回复