Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29

Thread: [HowTo] Install and Configure a WORKING Samba (Vista included)

  1. #16
    Join Date
    Dec 2007
    Location
    Sofia
    Posts
    6
    I have the following problem. I have installed the new samba as per the tutorials, but my smbd process doens start with the options as per /opt/etc/samba/smb.conf

    143 admin 408 S /opt/sbin/cron
    148 admin 732 S dropbear
    149 admin 576 S -sh
    184 admin 732 S dropbear
    185 admin 576 S -sh
    189 admin 328 S tail -f /opt/var/log/smbd.log
    264 admin 1392 S /opt/sbin/nmbd -D -n homesweethome2 -o -l /tmp -s /opt/etc/samba/smb.conf
    275 admin 2072 S [smbd]
    276 admin 2008 S [smbd]
    283 admin 720 S dropbear
    284 admin 556 S -sh
    288 admin 404 R ps

    in the /opt/var/log/smbd.log I can see the following:

    [2007/12/21 20:04:53, 0] source/auth/auth_util.c:get_root_nt_token(501)
    get_root_nt_token: getpwnam"root") failed!
    [2007/12/21 20:04:53, 0] source/auth/auth_util.c:get_root_nt_token(501)
    get_root_nt_token: getpwnam"root") failed!
    [2007/12/21 20:04:53, 0] source/services/services_db.c:svcctl_init_keys(420)
    svcctl_init_keys: key lookup failed! (WERR_ACCESS_DENIED)

    does anybody have any ideas?

    thanks

  2. #17
    Delete that log and try again... does the same errors appear again?

    What user do you have on the router? admin or root?

  3. #18
    Hello

    For kamikaze you need to make a little different startup script.
    Im not a expert so correct the script if I got something wrong but it works for me.

    #!/bin/sh /etc/rc.common

    START=50
    STOP=50


    start()
    {
    echo -n "Starting samba "
    /opt/sbin/nmbd -D
    /opt/sbin/smbd -D
    echo "Done."
    }
    stop()
    {
    echo -n "Stopping samba: "
    killall smbd
    killall nmbd
    echo "Done."
    }
    restart()
    {
    stop
    sleep 2
    start
    }
    Also you need to put it into /etc/init.d or /opt/etc/init.d/ and ofcouse enable it with : '/etc/init.d/scriptname enable. Then it goes to rc.d as SXXsamba.

    Also remember about putting the START value to your specific config if your share is on usbhdd
    Example: If your hdd mount is START=55 then samba value for START must be >55. Maybe it would work if you set below but why try :P

  4. #19
    Hi, I just upgraded samba as per this info below, but I can not access (I can see them) all these folders, it would not let me from Windows.

    here is my config:
    Code:
    Êîä:
    [global]
    workgroup = HOME
    guest account = nobody
    security = share
    browseable = yes
    guest ok = yes
    guest only = no
    log level = 0
    log file = /opt/logs/smbd.log
    max log size = 100
    encrypt passwords = yes
    dns proxy = no
    netbios name = WL500gP
    server string = ASUS WL500g Premium
    socket options = WL500g Premium 
    
    [share$]
    path=/opr/share
    writeable = yes
    browseable = yes
    public = yes
    
    
    [harddisk$]
    path=/opt/harddisk
    writeable = yes
    browseable = yes
    public = yes
    
    [www]
    path=/tmp/harddisk/www
    writeable = yes
    browseable = yes
    public = yes
    
    [ftp_pvt]
    path=/tmp/harddisk/ftp_pvt
    writeable = yes
    browseable = yes
    public = yes
    
    
    [ftp_pub]
    path=/tmp/harddisk/ftp_pub
    writeable = yes
    browseable = yes
    public = yes
    
    
    [logs]
    path=/opt/logs
    writeable = yes
    browseable = yes
    public = yes
    Any idea why?

    Thanks.

  5. #20
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Code:
    guest account = nobody
    you should use an account that has access to the files.
    nobody is not a good choice.
    try admin if you do not have any security worries.

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  6. #21
    Quote Originally Posted by piezomotor View Post
    Hi, I just upgraded samba as per this info below, but I can not access (I can see them) all these folders, it would not let me from Windows.
    Thanks.
    chmod 777 /foldername for each shared directory.

  7. #22

    Issues with smbd nmbd startup

    Followed all the steps. Tried it in firmware xxx - 7g and xxx - 8, with a number of things that I thought might help, but no luck. It seems that any (all) the newly created files in the /opt/sbin dir are 'not found'??

    Any ideas?

    output:

    /opt/etc/init.d/S08samba: /opt/etc/init.d/S08samba: 21: /opt/sbin/nmbd: not found
    Starting smbd:
    /opt/etc/init.d/S08samba: /opt/etc/init.d/S08samba: 23: /opt/sbin/smbd: not found

    ls-l /opt/sbin

    -rwxr-xr-x 1 admin root 7696 Jan 30 02:03 accept
    -rwxr-xr-x 1 admin root 8072 Jan 24 13:16 cupsaddsmb
    -rwxr-xr-x 1 admin root 7876 Jan 24 13:16 cupsctl
    -rwxr-xr-x 1 admin root 404272 Jan 24 13:16 cupsd
    lrwxrwxrwx 1 admin root 6 Jan 30 02:03 cupsdisable
    lrwxrwxrwx 1 admin root 6 Jan 30 02:03 cupsenable -
    -rwxr-xr-x 1 admin root 32272 Jan 24 13:16 cupsfilter
    -rwxr-xr-x 1 admin root 24064 Jan 24 13:16 lpadmin
    -rwxr-xr-x 1 admin root 8756 Jan 24 13:16 lpc
    -rwxr-xr-x 1 admin root 8044 Jan 24 13:16 lpinfo
    -rwxr-xr-x 1 admin root 7096 Jan 24 13:16 lpmove
    -rwxr-xr-x 1 admin root 26956 Jan 25 07:59 mount.cifs
    lrwxrwxrwx 1 admin root 17 Jan 30 02:05 mount.smbfs
    smbmount
    -rwxr-xr-x 1 admin root 1307664 Jan 25 07:59 nmbd
    lrwxrwxrwx 1 admin root 6 Jan 30 02:03 reject -> ac
    -rwxr-xr-x 1 admin root 4555052 Jan 25 07:59 smbd
    -rwxr-xr-x 1 admin root 2680364 Jan 25 07:59 swat

  8. #23

    long file names are not supported

    Quote Originally Posted by wengi View Post
    Code:
    guest account = nobody
    Thanks, it works, now I have connected NTFS 1TB HD to my WL500gP via usb hub it was identified as

    /dev/scsi/host1/bus0/target0/lun0/part1

    It works for me fine, but it loos like long file names are not supported?

    ashwin~1 cowboy~1 t sleepy~1 wd_mac~1
    docume~1
    Any idea how this can be fixed?

    Thanks.
    Last edited by piezomotor; 31-01-2008 at 01:23.

  9. #24
    Hi!

    Quote Originally Posted by flogged11 View Post
    Followed all the steps. Tried it in firmware xxx - 7g and xxx - 8, with a number of things that I thought might help, but no luck. It seems that any (all) the newly created files in the /opt/sbin dir are 'not found'??

    output:

    /opt/etc/init.d/S08samba: /opt/etc/init.d/S08samba: 21: /opt/sbin/nmbd: not found
    Starting smbd:
    /opt/etc/init.d/S08samba: /opt/etc/init.d/S08samba: 23: /opt/sbin/smbd: not found
    Just as I had the same problem and didn't find an answer anywhere:
    I installed uclibc-opt, and everything now works like a charm.

    - TBS

  10. #25
    Join Date
    Feb 2008
    Location
    Norway
    Posts
    19
    Hi,

    I can not start S08samba at all. I try

    ./S08samba

    and it says "starting samba" and "starting nmbd" but it doesn't appear in list when I type ps.

    Is it possible that its not enough mamory?

  11. #26
    It would show up as "[smbd]", you sure it's not there?

    You can also check by running `netstat -tln`, it should show something listening to port 139, like this:

    Code:
    tcp        0      0 192.168.123.254:139     0.0.0.0:*               LISTEN
    If it's really not starting then look in /opt/var/log/samba, there are some log files there. Check at the end of them, there might be a clue of what's going on.

    Why do you worry about memory, you doing anything to consume a lot of it? Like running lots of other big programs? Usually Samba should work without a problem.
    Last edited by wirespot; 12-02-2009 at 07:24.

  12. #27
    How do you make this work with logons?
    I want to password protect my share since I'm on a shared WLAN. Haven't been able to logon from my Win7 box. Applied all of the registry hacks here, and elsewhere...

    How does your smb.conf look like for successful login-support? Do you use ./smbpasswd?

  13. #28
    Here's a working /opt/etc/samba/smb.conf. I'm assuming you have an USD HDD or flash stick mounted at /opt and an extended system installed there.

    This smb.conf will let you share a certain directory with a user and password set in /opt/etc/samba/smbpasswd with the smbpasswd command-line util. Adjust the "hosts allow" and "socket address" to match your LAN configuration. The first says which IP's are allowed to connect and the second what IP to listen on (the router LAN IP).

    Code:
    [global]
       workgroup = WORKGROUP
       server string = Samba Optware Server
       hosts allow = 192.168.123.
       printcap name = /etc/printcap
       load printers = no
       log file = /opt/var/log/samba/log.%m
       max log size = 50
       security = share
       encrypt passwords = yes
       smb passwd file = /opt/etc/samba/smbpasswd
       socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
       interfaces = br0
       socket address = 192.168.123.254
       dns proxy = no 
    preserve case = yes
       
    [files]
       comment = Files
       path = /opt/files
       valid users = smbuser
       public = no
       writable = yes
       printable = no
       create mask = 0660
       directory mask = 6770
    To mount the share, I do this (from Linux):

    Code:
    smbmount //192.168.123.254/files ~/router/ \
    -o credentials=~/.samba/auth,dom=WORKGROUP,\
    uid=localuser,gid=localgroup,\
    file_mode=0660,dir_mode=0770
    ~/.samba/auth holds the user and password which you have set with smbpasswd on the router, in the following format (so I don't have to type it manually):

    Code:
    username=smbuser
    password=smbpass
    Take care to chmod 600 ~/.samba/auth.

  14. #29

    Samba 3 not working

    I have Asus Wl-500gp router with Samba 2 built in the firmware (Oleg version WL500gp-1.9.2.7-10). This Samba was working well. The installation of Samba 3.6

    Code:
    ipkg install samba36
    was without problems and smbd and nmbd are automatically started after reboot:

    Code:
      151 admin      1976 S   /opt/sbin/nmbd -D
      153 admin      3600 S   /opt/sbin/smbd -D
      165 admin      3480 S   /opt/sbin/smbd -D
    Here is also the log from /opt/var/samba/log.nmbd file after rebooting the router:

    Code:
    [2013/06/01 13:23:09,  0] nmbd/nmbd.c:861(main)
      nmbd version 3.6.15 started.
      Copyright Andrew Tridgell and the Samba Team 1992-2011
    [2013/06/01 13:23:09,  1] param/loadparm.c:9670(lp_load_ex)
      WARNING: The security=share option is deprecated
    [2013/06/01 13:23:09,  1] param/loadparm.c:9670(lp_load_ex)
      WARNING: The security=share option is deprecated
    and log.smbd file:

    Code:
    [2013/06/01 13:23:10,  0] smbd/server.c:1072(main)
      smbd version 3.6.15 started.
      Copyright Andrew Tridgell and the Samba Team 1992-2011
    [2013/06/01 13:23:10,  1] param/loadparm.c:9670(lp_load_ex)
      WARNING: The security=share option is deprecated
    [2013/06/01 13:23:10.290456,  1] param/loadparm.c:9670(lp_load_ex)
      WARNING: The security=share option is deprecated
    I also tried the option

    Code:
    security = user
    to suppress the warning message but the result was the same - in Windows XP or 7 no connection to Samba share is established. The same connection which was working with Samba 2.
    Here is my smb.conf file:

    Code:
    [global]
            workgroup = WORKGROUP
            guest account = admin
            security = share
            map to guest = Bad User
            browseable = yes
            guest ok = yes
            guest only = yes
            log level = 1
            max log size = 100
            encrypt passwords = no
            preserve case = yes
            short preserve case = yes
            dns proxy = no
            netbios name = ASUS_SAMBA
            server string = Asus WL-500W
            socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=8192
            bind interfaces only = yes
            interfaces = 192.168.1.2/24
            hosts allow = 192.168.1.2/255.255.255.0
            printcap name = /dev/null
            load printers = no
            printing = bsd
    
    [z]
            path = /tmp/mnt/disc1_3
            writeable = yes
            browseable = yes
            force user = admin
    Would you have an idea why it is not working? What can I try or check? I have no more ideas.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 24
    Last Post: 05-05-2015, 07:42
  2. [HowTo] Install and configure Oleg's firmware
    By wengi in forum WL-500gP Tutorials
    Replies: 957
    Last Post: 22-02-2013, 22:24
  3. HowTo install OpenVPN server
    By Tamadite in forum WL-500g/WL-500gx Tutorials
    Replies: 41
    Last Post: 31-05-2012, 20:41
  4. [Howto] Install hddtemp
    By Denmike in forum WL-500gP Tutorials
    Replies: 11
    Last Post: 26-02-2012, 06:46
  5. Samba share accessible in XP but not Vista
    By goolias in forum WL-500gP Q&A
    Replies: 4
    Last Post: 05-11-2007, 14:07

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
  •