jarecki
31-05-2009, 23:10
Hi,
I would like to ask you for advise in settings up samba 3 + swat.
To install samba I did:
ipkg-opt install xinetd samba3 samba3-swat
vi /opt/etc/init.d/S10xinetd
#! /bin/sh
#
# Startup script for xinetd
#
prefix=/opt
sbindir=${prefix}/sbin
NAME=xinetd
DAEMON=${sbindir}/${NAME}
DESC="xinetd"
PIDFILE="/var/run/xinetd.pid"
OPTIONS="-pidfile $PIDFILE"
CONFDIR="/opt/etc/xinetd.d"
# installation check
test -x ${DAEMON} || exit 0
case "$1" in
start)
if [ -z "`pidof ${NAME}`" ] ; then
printf "Starting ${DESC}: "
${DAEMON} ${OPTIONS}
printf "${NAME}.\n"
fi
;;
stop)
if [ -n "`pidof ${NAME}`" ]; then
printf "Stopping ${DESC}: "
kill -SIGTERM `cat $PIDFILE`
printf "${NAME}.\n"
for i in ${CONFDIR}/* ; do
if [ -n "`grep "^[[:space:]]*disable[[:space:]]*=[[:space:]]*no" ${i}`" ] ; then
daemon="`basename $(awk -F= '/^[[:space:]]*server[[:space:]]*=[[:space:]]*.*/{print $2}' ${i})`"
printf "Stopping ${daemon}: "
kill "`pidof ${daemon}`" > /dev/null 2>&1
printf "${daemon}.\n"
fi
done
fi
;;
reload|reconfigure)
if [ -n "`pidof ${NAME}`" ]; then
printf "Reloading ${DESC}: "
kill -SIGHUP `cat $PIDFILE`
printf "${NAME}.\n"
fi
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
printf "Usage: $0 {start|stop|reload|reconfigure|restart|force-reload}\n" >&2
exit
;;
esac
exit 0
-------------------
vi /opt/etc/xinetd.d/swat
defaults
{
only_from = localhost 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /opt/etc/xinetd.d
-----
[admin@WL-00248C4297EC init.d]$ /opt/etc/init.d/S10xinetd start
Starting xinetd: xinetd.
[admin@WL-00248C4297EC init.d]$
I checked from syslogd.log and there is no error:
May 31 21:00:18 xinetd[2120]: Exiting...
May 31 21:00:22 xinetd[2147]: xinetd Version 2.3.14 started with no options compiled in.
May 31 21:00:22 xinetd[2147]: Started working: 1 available service
May 31 21:00:53 ntp client: Synchronizing time with time.nist.gov ..
I checked in process and there is no swat process.
[admin@WL-00248C4297EC init.d]$ ps |grep swat
2157 admin 376 S grep sw
I set up the /opt/etc/samba/smb.conf file.
and samba is running fine but
When I tried to open http://192.168.10.3:901/ I got that:
Connection Interrupted
The document contains no data
The network link was interrupted while negotiating a connection. Please try again.
Could you please advise what I'm doing wrong?
I would like to ask you for advise in settings up samba 3 + swat.
To install samba I did:
ipkg-opt install xinetd samba3 samba3-swat
vi /opt/etc/init.d/S10xinetd
#! /bin/sh
#
# Startup script for xinetd
#
prefix=/opt
sbindir=${prefix}/sbin
NAME=xinetd
DAEMON=${sbindir}/${NAME}
DESC="xinetd"
PIDFILE="/var/run/xinetd.pid"
OPTIONS="-pidfile $PIDFILE"
CONFDIR="/opt/etc/xinetd.d"
# installation check
test -x ${DAEMON} || exit 0
case "$1" in
start)
if [ -z "`pidof ${NAME}`" ] ; then
printf "Starting ${DESC}: "
${DAEMON} ${OPTIONS}
printf "${NAME}.\n"
fi
;;
stop)
if [ -n "`pidof ${NAME}`" ]; then
printf "Stopping ${DESC}: "
kill -SIGTERM `cat $PIDFILE`
printf "${NAME}.\n"
for i in ${CONFDIR}/* ; do
if [ -n "`grep "^[[:space:]]*disable[[:space:]]*=[[:space:]]*no" ${i}`" ] ; then
daemon="`basename $(awk -F= '/^[[:space:]]*server[[:space:]]*=[[:space:]]*.*/{print $2}' ${i})`"
printf "Stopping ${daemon}: "
kill "`pidof ${daemon}`" > /dev/null 2>&1
printf "${daemon}.\n"
fi
done
fi
;;
reload|reconfigure)
if [ -n "`pidof ${NAME}`" ]; then
printf "Reloading ${DESC}: "
kill -SIGHUP `cat $PIDFILE`
printf "${NAME}.\n"
fi
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
printf "Usage: $0 {start|stop|reload|reconfigure|restart|force-reload}\n" >&2
exit
;;
esac
exit 0
-------------------
vi /opt/etc/xinetd.d/swat
defaults
{
only_from = localhost 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /opt/etc/xinetd.d
-----
[admin@WL-00248C4297EC init.d]$ /opt/etc/init.d/S10xinetd start
Starting xinetd: xinetd.
[admin@WL-00248C4297EC init.d]$
I checked from syslogd.log and there is no error:
May 31 21:00:18 xinetd[2120]: Exiting...
May 31 21:00:22 xinetd[2147]: xinetd Version 2.3.14 started with no options compiled in.
May 31 21:00:22 xinetd[2147]: Started working: 1 available service
May 31 21:00:53 ntp client: Synchronizing time with time.nist.gov ..
I checked in process and there is no swat process.
[admin@WL-00248C4297EC init.d]$ ps |grep swat
2157 admin 376 S grep sw
I set up the /opt/etc/samba/smb.conf file.
and samba is running fine but
When I tried to open http://192.168.10.3:901/ I got that:
Connection Interrupted
The document contains no data
The network link was interrupted while negotiating a connection. Please try again.
Could you please advise what I'm doing wrong?