Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 37

Thread: Message for Oleg

  1. #16
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    I would try to fore samba to listen to br0 with editing /opt/etc/samba/smb.conf
    and uncomment
    Code:
    ;   interfaces = br0

    Look into /opt/var/log/samba for content of log files.

    Check for running daemons with
    ps|grep mbd
    There could be other network related problems that can be checked with netstat -ln

  2. #17
    in my '/opt/etc/samba/smb.conf' there is no '; interfaces = br0'.

    My conf:
    # Samba config file created using SWAT
    # from 192.168.1.3 (192.168.1.3)
    # Date: 2007/02/07 07:16:30

    # Global parameters
    [global]
    workgroup = MSHEIMNETZ
    encrypt passwords = Yes

    [printers]
    comment = All Printers
    path = /opt/var/spool/samba
    printable = Yes
    browseable = No

    [Part1]
    path = /opt
    read only = No
    guest ok = Yes


    ps|grep mbd result:
    there semse no running services.

    Mh, I think I made any rookie mistake...

  3. #18
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    So then you have swat running. Use GUI to set
    interfaces=br0
    Or edit smb.conf and add it! Then try againg to run samba.

    And note that log path should exist. You've erased all this settings with SWAT
    Last edited by oleo; 07-02-2007 at 12:03. Reason: log paath

  4. #19
    Interface is now br0 but Samba still not running.
    Logfile is set. It shows: '[2007/02/08 08:37:35, 0] source/lib/interface.c:load_interfaces(216)
    WARNING: no network interfaces found'
    I see my USB-HDD in my Win XP and Vista Network (shows its name Usbhdd). If I doubleclick the message appear: You have not the rights to access to it (free translate from german).
    What can i do? Should i wait, till Oleg implement Samba 2.2 in his firmware (hope,hope)? Should I refirm my router with Olegs Firmware and start from the beginnig? I hate Vista home...;-)

  5. #20
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    ifconfig will show your interfaces. I've assumed that you have wl500g something.
    add user nobody or similar to /etc/passwd for guest account.

  6. #21
    Oleo, thank you for help. I refirm my router (WL-500gp) and start at the beginning. I study http://www.sprayfly.com/wiki/Samba_Guides (very good wiki) and install samba2 with your describes.
    Now it works fine with XP and Vista home.
    My mistake: I use Olegs 1.9.2.7-7f and disable FTP-Server in the web-interface. In this case samba don't work and USB-HDD don't mount.
    Last qustion: Of course that, should I update the FTP-Server how describes here: http://www.sprayfly.com/wiki/VSFTP_Guides. Or is it unnecessary for samba-services? I use no FTP...
    Last edited by hanseugen; 09-02-2007 at 10:05.

  7. #22
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    You can mount partition in /usr/local/sbin/post-boot file if samba and stupid-ftpd is disabled ant thus no mount occurs. Disable ftpd , nfs if you do not need them.

  8. #23
    Hmm...this is my post-boot:

    #!/bin/sh
    mount /dev/discs/disc0/part1 /opt
    i=0
    while [ $i -le 30 ]
    do
    if [ -d /opt/etc ]
    then
    break
    fi
    sleep 1
    i=`expr $i + 1`
    done
    swapon /dev/discs/disc0/part2
    /opt/etc/init.d/rc.unslung
    #/opt/etc/init.d/S10xinetd start
    #/opt/etc/init.d/S80samba start

    I think it's okay for auto-mounting. But it works only, if I enabled FTP in the web-interface. And also Samba starts only with ftp on.
    Last edited by hanseugen; 09-02-2007 at 13:25.

  9. #24
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    This is because your script lacks some important module loading also!

    Add
    insmod scsi_mod
    insmod usb-storage
    insmod sd_mod
    at the beginning and wait some seconds for kernel to detect hardware. It could be in a loop but not as braindead loop like one you have.

    Note that WL-HDD requires other modules FOR ide that I am unaware.
    lsmod will show you proper modules.

  10. #25
    oleo, you are so right! I do this and all runs stable with xp and vista home. (with disable FTP in Web-interface). Great Thanks! Only one error in Log:
    Code:
    Feb  9 18:11:38 smbd[197]: [2007/02/09 18:11:38, 0] smbd/nttrans.c:call_nt_transact_ioctl(2516) 
    Feb  9 18:11:38 smbd[197]:   call_nt_transact_ioctl: Currently not implemented.
    But I think, this is normal (read on web)

    Perhaps for other readers, my smb.conf looks now:
    Code:
    [global]
            workgroup = WORKGROUP
            guest account = nobody
            server string = USBDISC
            interfaces = 192.168.1.0/24 127.0.0.1
            bind interfaces only = yes
            security = SHARE
            browseable = yes
            guest ok = yes
            guest only = no
            log level = 1
            max log size = 50
            encrypt passwords = no
            dns proxy = no
            log file = /opt/var/log/samba/log.%m
            load printers = No
    [smbshare]
            path=/opt/share
            writeable = yes
            browseable =yes
            force user = admin
    My post-boot file:
    Code:
    #!/bin/sh
    # test if USB disc has been attached
    # if not - then insert needed modules
    if [ ! -d /dev/discs ]
        then
    insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
        fi
    # wait for /opt to mount
    mount /dev/discs/disc0/part1 /opt
        i=0
    while [ $i -le 30 ]
        do
    if [ -d /opt/etc ]
        then
        break
        fi
    sleep 1
    i=`expr $i + 1`
        done
    swapon /dev/discs/disc0/part2
    /opt/etc/init.d/rc.unslung
    A hint for vista user with this configuration: In Xp you can explore the WL-HDD direct via doubleclick on 'USBDISC' in Network. In Vista 'USBDISC' is shown, but you can't doubleclick. But go on 'Run' and enter \\USBDISC\smbshare.
    ´
    In cause of that, Logfile:
    Code:
    Feb  9 18:42:03 smbd[149]: [2007/02/09 18:42:03, 0] lib/util_sock.c:set_socket_options(151) 
    Feb  9 18:42:03 smbd[149]:   Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor) 
    Feb  9 18:42:03 smbd[149]: [2007/02/09 18:42:03, 0] lib/util_sock.c:set_socket_options(151) 
    Feb  9 18:42:03 smbd[149]:   Failed to set socket option TCP_NODELAY (Error Operation not supported) 
    Feb  9 18:42:44 smbd[371]: [2007/02/09 18:42:44, 0] smbd/service.c:make_connection(214) 
    Feb  9 18:42:44 smbd[371]:   hnpc1 (192.168.1.2) couldn't find service smbshare. 
    Feb  9 18:42:44 smbd[371]: [2007/02/09 18:42:44, 0] smbd/service.c:make_connection(214) 
    Feb  9 18:42:44 smbd[371]:   hnpc1 (192.168.1.2) couldn't find service smbshare
    Last edited by hanseugen; 09-02-2007 at 18:31.

  11. #26
    hi oleo,

    i have tried to remotely install (from my office) the samba2 package on my wl-hdd at home without thinking what i am doing :-O and while downloading the package i have realized i was already running samba 2.0.10 included in olegs latest firmware. the result was: installation process hangs now (and i have to wait until the evening for going home and restarting wl-hdd).

    i guess i should have stop samba process before starting installation of samba2 package. but i am not quite sure. so my question (before i have another try this evening): can i install samba2 package on olegs latest wl-hdd firmware 1.9.2.7-7f in order to get the web-frontend for managing samba?

    thanks for any assistance

    peter

  12. #27
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    running Oleg samba does not interfere with installation process. Startup procedure also kills .mbd daemons. There could be a problem if you have running samba 2.2.12 daemon and want to reinstall it. Then "Text file busy could occur". For this reason I recommed to killall nmbd and smbd brefor any reinstallation.

  13. #28
    good morning oleo,

    thanks a lot for your hints. i had no time yesterday evening but today i am going to try again. will let you know the results :-)


    many thanks again

    peter

  14. #29
    hi oleo,

    i have tried again to install the samba2 package but no success. just let me describe and comment my steps:

    here your walkthrough i was following:
    1) /opt/bin/ipkg update
    2) /opt/bin/ipkg remove samba
    3) /opt/bin/ipkg install samba2
    4) /opt/bin/ipkg install xinetd
    5) /opt/etc/init.d/S10xinetd start
    6) /opt/etc/init.d/S80samba start

    here my attempts:
    1) works fine
    2) error message - but this is ok as in wl-hdd's firmware samba 2.0.10-security_rollup is already included but not installed by ipkg
    3) starts downloading and says "installing to root..." and this is it. i do not get any response from my device for a long time (cannot say how long as i left it alone for several hours). after that i logged in using putty over ssh and wl-hdd was up and running but still no samba 2.2.12 installed.
    4) not necessary for wl-hdd as it is already installed
    5) works fine
    6) /opt/etc/init.d/S80samba does not exist only S97samba exists (which is olegs samba 2.0.10).

    i am a little clueless as i am not the linux crack, more a rookie with some theoretical knowledge ;-) and having fun playing with linux (have switched from windows xp to opensuse 10.2 two months ago with a hard cut, no more windows on my hard-disk).

    maybe there is a chance to look into some log files but i have no idea where to find them.


    any suggestion is welcome

    peter

  15. #30
    peter,
    i think number 2 is your problem. You have not installed samba 2.2 (I think, Oleg has an earlier release with 2.0, which is not vista-compatible.) Try to repeat step two and perhaps try it often. First check, if a proper internet-connection exist.
    In my case installing counts about 10 minutes.

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Send Message
    By MHz in forum WL-500g Q&A
    Replies: 2
    Last Post: 09-05-2006, 08:39
  2. FTP Server Welcome Message
    By MHz in forum WL-500g Q&A
    Replies: 0
    Last Post: 28-04-2006, 16:04
  3. Problem with Samba
    By bs3 in forum WL-500g Q&A
    Replies: 16
    Last Post: 24-05-2005, 09:42
  4. Windows XP code 10 device does not start message
    By iceman-nl in forum WL-100g/WL-100gDeluxe/WL-103b/WL-120b/WL-120g [Broadcom Chipset]
    Replies: 4
    Last Post: 14-05-2004, 17:44

Posting Permissions

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