Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Thread: Cant get Samba working

  1. Question Cant get Samba working

    Hi there,

    Iv been working around with my new Asus WL-500G Deluxe for a few weeks now - reading like a madman on this forum. Great work btw .

    But Im still having my share of problems with setting samba up properly.
    Iv gotten SSH working easily - and my external 200gb disk is partitioned like the "GETTING STARTED HOWTO" explained to do, to avoid errors.

    http://wl500g.info/showthread.php?t=...ighlight=samba

    But - after following that guide in superdetail (fixing some typo's in some of the commands) - and really tried to understand why samba isnt working - im slowly giving up, and calling you guys for help.

    I have set a hostname in the webinterface as well - but there is simply no response from my router when i type either \\192.168.1.1 or \\500GDeluxe (which is my hostname).

    My /etc/smb.conf looks like this:¨

    Code:
    [global]
            workgroup = WORKGROUP
            guest account = nobody
            security = share
            browseable = yes
            guest ok = yes
            guest only = no
            log level = 1
            max log size = 100
            encrypt passwords = yes
            dns proxy = no
    
    [fat32]
      path=/tmp/harddisk
      writeable = yes
      browseable = yes
      force user = admin
    
    [ext3]
      path=/tmp/harddisk/part1
      path=/tmp/harddisk
      writeable = yes
      browseable = yes
      force user = admin
    my partitions look like this:
    Code:
    WITH DF:
    
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/root                 2688      2688         0 100% /
    /dev/discs/disc0/part1 31239152        64  31239088   0% /tmp/harddisk
    /dev/discs/disc0/part5165252792     32828 156825604   0% /tmp/harddisk/part1
    
    IN FDISK:
    
    /dev/scsi/host0/bus0/target0/lun0/part1               1        3891    31254426    c  Win95 FAT32 (LBA)
    /dev/scsi/host0/bus0/target0/lun0/part2            3892       24792   167887282+   5  Extended
    /dev/scsi/host0/bus0/target0/lun0/part5            3892       24792   167887251   83  Linux
    Im using the firmware surgested in the "Getting started" guide (1.9.2.7-4).

    I hope you guys can help me.


    EoniX

  2. #2
    \\192.168.1.1 or \\500GDeluxe
    Asuming you tried \\192.168.1.1\fat32 or \\500GDeluxe\ext3....?

    Other tips..
    - make sure smbd and nmbd is running ("ps")
    - and that they are listening "netstat -a"
    - Have you messed around with firewall? If so you can post restults from "iptables -L"

    S.

  3. What am i looking for ?

    Asuming you tried \\192.168.1.1\fat32 or \\500GDeluxe\ext3....?

    Tried both now - not working at all.

    I should prolly mention that my router isnt replying on 500GDeluxe when pinging it. But it does reply on 192.168.1.1. I have no idea why its not responding on the set hostname in the webinterface.

    Code:
    - make sure smbd and nmbd is running ("ps")
    None of them is running... (which would explain alot I guess) - How do I start them - and why arent they started ?

    Code:
    - and that they are listening "netstat -a"
    Which ports am I looking for here ?

    Havent messed around with my firewall other than disabling it.

    Please help :P

  4. #4
    Well did you enable it from web admin? Usb Application -> Samba?

    Try that. If it doesn't work you can put
    Code:
    /usr/sbin/nmbd -D
    /usr/sbin/smbd -D
    in your post-mount file.

    S.

  5. In the webinterface all I can set is:

    Enable Samba Demo mode? Yes No
    Enable hidden read-write share? Yes No

    Which tell me shit - At which state is it enabled ? - I cannot enable DEMO MODE - even after saving and restarting the router.

    And this is the commands from the "HOWTO" guide to put in smbd -D and nmdb -D in my post-mount file.

    echo "/usr/sbin/smbd -D" >> /usr/local/sbin/post-boot
    echo "/usr/sbin/nmbd -D" >> /usr/local/sbin/post-boot

    Please help

  6. #6
    echo "/usr/sbin/smbd -D" >> /usr/local/sbin/post-boot
    echo "/usr/sbin/nmbd -D" >> /usr/local/sbin/post-boot
    And then you need to "flashfs save", "flashfs commit" and the first time you need to "flashfs enable".

    But you can also just run /usr/sbin/smbd -D and /usr/sbin/nmbd -D from command line, and see if it works then. If that works try to stick into post-mount (since they access the hd..)

    S.

  7. Hey,

    I just tried completly to reset my router to default - and then i followed the intire GETTING STARTED GUIDE one more time - and did exactly what you said just now - but even the
    /usr/sbin/smbd -D
    /usr/sbin/nmbd -D
    in the commandline ISNT starting anything up.

    My god this is frustrating.

    Please help

  8. #8
    Check your syslog.

    "cat /tmp/syslog.log"

    S.

  9. syslog shows only this

    Code:
    Apr  8 13:44:12 login[137]: root login  on `pts/0'
    Apr  8 13:47:46 dropbear[151]: Running in background
    Apr  8 15:42:30 ntp client: Synchronizing time with time.nist.gov ...
    Apr  8 16:33:01 dnsmasq[58]: DHCPINFORM(br0) 192.168.1.20 00:01:80:3e:80:df
    Apr  8 16:33:01 dnsmasq[58]: DHCPACK(br0) 192.168.1.20 00:01:80:3e:80:df eonix
    Apr  8 16:33:04 dnsmasq[58]: DHCPINFORM(br0) 192.168.1.20 00:01:80:3e:80:df
    Apr  8 16:33:04 dnsmasq[58]: DHCPACK(br0) 192.168.1.20 00:01:80:3e:80:df eonix
    Apr  8 17:42:34 ntp client: Synchronizing time with time.nist.gov ...
    And cant find anything of samba

  10. #10
    Strange. If you try without the -D maybe you'll get some error messages..

    S.

  11. Nothing up the above works!! -

    So lets try going over things again - I really want this samba share to work.

    Right from the beginning the command /usr/sbin/smbd -D and /usr/sbin/nmbd -D would just stall for 2 seconds and then do nothing - like this:

    Code:
    [admin@dhcppc0 root]$ /usr/sbin/smbd -D
    [admin@dhcppc0 root]$ /usr/sbin/nmbd -D
    [admin@dhcppc0 root]$
    And then it should be running - am I right ?

    I try to do ps to see if its started - but there is no such process as smbd or nmbd.
    Neither in the netstat -a (still dont know which port they listen on)

    I have found on this board that the hostname of the router needs to be set - and I have that set to 500GDeluxe... this is my hosts file.

    Code:
    127.0.0.1 localhost.localdomain localhost
    192.168.1.1 500GDeluxe my.router my.WL500g.Deluxe
    Really looking forward to getting this samba stuff working.


    EoniX
    Last edited by Mr.EoniX; 19-04-2005 at 08:22.

  12. OK - I finally had a break at the problem - but i solved it rather oddly - I realized it had something to do with the hostname not beeing set correctly.

    But the smbd was complaining about dhcppc0 didnt have a host - which I thought was strange because i had set the hostname in the webinterface to deluxe.

    So i tried to change the hostname in the webinterface to "dhcppc0" - and now it works - the samba deamon starts and everything works - but this isnt the proper way to deal with this. - Can i please get to know how to save permanent changes in the hosts file without the use of the webinterface.

    I would simply just like it if this would be added - Im guessing it would fix everything:

    192.168.1.1 dhcppc0

    But how to save and commit the changes to the hosts file?


    EoniX

  13. #13
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by Mr.EoniX
    But the smbd was complaining about dhcppc0 didnt have a host - which I thought was strange because i had set the hostname in the webinterface to deluxe.
    This is the right way for now.

  14. #14
    Quote Originally Posted by Mr.EoniX
    But the smbd was complaining about dhcppc0 didnt have a host - which I thought was strange because i had set the hostname in the webinterface to deluxe.
    Please tell me where you saw the complaining, thus: which file logged the output?

    Quote Originally Posted by Mr.EoniX
    So i tried to change the hostname in the webinterface to "dhcppc0" - and now it works -
    EoniX
    Same here, deamon is starting Now the configuring is needed, since I'm not able to write to the disk. Oh well, back to the HOWTO I assume.......

  15. It was complaining in the log files of smbd

Page 1 of 2 12 LastLast

Similar Threads

  1. wan port not working
    By culprit in forum WL-500g Q&A
    Replies: 1
    Last Post: 01-09-2005, 11:26
  2. WL-HDD USB Hub not working
    By r0ll3r in forum WL-HDD Q&A
    Replies: 3
    Last Post: 07-07-2005, 10:20
  3. WPA not working
    By Panja in forum WL-500g Q&A
    Replies: 8
    Last Post: 25-06-2004, 11:36
  4. usb hub working
    By justwords in forum WL-500g Q&A
    Replies: 1
    Last Post: 23-12-2003, 21:45

Posting Permissions

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