Results 1 to 2 of 2

Thread: Samba 3.0 issue

  1. #1

    Samba 3.0 issue

    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?
    Last edited by jarecki; 31-05-2009 at 22:26.

  2. #2
    I found the problem. From some reason I think I stopped Samba server

    I used help from http://www.nslu2-linux.org/wiki/Optware/Samba.

    Now it is up an running. If u will have any problems let me know I can help

Similar Threads

  1. Long File name issue with mounted Fat32 partition, shared via samba
    By bakablah in forum WL-500gP Firmware Discussion
    Replies: 0
    Last Post: 26-08-2007, 07:13
  2. SAMBA 2 will not run
    By rj.2001 in forum WL-500g Q&A
    Replies: 9
    Last Post: 15-08-2007, 11:54

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •