samba的网页管理界面安装swat
swat是一个网页管理界面.他的安装说明中这样的.
In /etc/services you need to add a line like this:
In /etc/inetd.conf you should add a line like this:
# 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
{
disable = no
port = 901
socket_type = stream
wait = no
# only_from = 172.16.192.60
bind = 172.16.192.60
user = root
server = /usr/sbin/swat
log_on_failure += USERID
其中bind 这一行是我后加上的,为这个郁闷了好久,后面可以是IP也可以是网卡名称,如eth0.
In /etc/services you need to add a line like this:
swat 901/tcp
In /etc/inetd.conf you should add a line like this:
swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat
但CentOS4.3中已经取消inetd服务了,而取而代之的是inetd.d下各个文件代替一个服务.
当然可以使用xinetd.d来代替,可以修改/etc/xinetd.d/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
{
disable = no
port = 901
socket_type = stream
wait = no
# only_from = 172.16.192.60
bind = 172.16.192.60
user = root
server = /usr/sbin/swat
log_on_failure += USERID
其中bind 这一行是我后加上的,为这个郁闷了好久,后面可以是IP也可以是网卡名称,如eth0.
评论