1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CIFS error after upgrading to Toast

Discussion in 'Tomato Firmware' started by frojnd, Nov 25, 2011.

  1. frojnd

    frojnd Networkin' Nut Member

    Hi there. Firstly I'd like to thank Toastman for such great mod and such effort and free time he is givin to us all. I'm not using it for a long time but so far I was fascinated by it :) Toastman thank you so much for your time, effort and knowladge you are sharing with us!

    Main router: WRT54GL v1.1 firmware: tomato-ND-1.28.7628.1-Toastman-VPN kernel 2.4
    The problem is that I can't mount cifs after glashing new firmware. Maybe I have done somthing wrong during the firmware installation. Let me describe the procedure:
    1) made backup
    2) cleared NVRAM
    3) changed tomato-ND-1.28.7628.1-Toastman-VPN.trx into tomato-ND-1.28.7628.1-Toastman-VPN.bin
    4) selected tomato-ND-1.28.7628.1-Toastman-VPN.bin and upgrade it
    5) cleared NVRAM

    and after that I just started to tweak QoS and other stuff. I got stuck at using the cifs and mounting cifs shares. I've tried different things as suggested in the forums but didn't work for me.

    Before I upgraded to toast release I got my home server back so I'm again able to use cifs with samba :) Host machine where samba server is installed: FreeBSD 8.2 samba: samba36-3.6.1 Installed like this: # cd /usr/ports/net/samba35 && make install clean Used the default settings and configured /usr/local/etc/smb.conf
    Code:
    [global]
      workgroup = MYGROUP
      server string = SambaServer
      security = user
      netbios name = FREEBSD
      load printers = yes
      log file = /usr/local/samba/var/log.%m
      max log size = 50
      dns proxy = no
    [homes]
      comment = Home Directories
      browseable = no
      writable = yes
    [printers]
      comment = All Printers
      path = /usr/spool/samba
      browseable = no
      guest ok = no
      writable = no
      printable = yes
    [myshare]
      comment = tomato stuff
      path = /data2/samba/
      valid users = frojnd
      public = no
      writable = yes
      printable = no
      create mask = 0644
    
    Added samba user: #smbpasswd -a frojnd (I think it's safe that I tell here that I try to change smbpasswd for user frojnd the same as for login password - didn't help either)

    I restarted samba after changing the name but I kept receiving followinf error:
    CIFS VFS: cifs_mount failed, return code = -6

    My toast configuration under Administration -> Cifs client:
    [​IMG]

    But as didn't helped I've changed UNC to: \\192.168.1.101\data2\samba\ but didn't help either. Still got the same error.

    And now permissions of FreeBSD: ls -la /data2/
    drwxr-xr-x 3 frojnd frojnd 512 Nov 25 16:16 samba

    And this is how I connect with Linux laptop:
    sudo mount -t cifs //ardoma/myshare /home/frojnd/FreBSD -o user=frojnd,password=UseItGently,uid=1000,gid=$100,workgroup=MYGROUP,ip=192.168.1.101

    I noticed that in toast version of tomato I have different security settings to choose between:
    [​IMG]

    Currently it's set to "Default (NTLM)" Maybe I have to change something in samba configuration in order for toast release to properly mount? Any help would be much appreciated.
     
  2. frojnd

    frojnd Networkin' Nut Member

    SOLVED!

    I changed /usr/local/etc/smb.conf to look like this:
    Code:
    [global]
        workgroup = MYGROUP
        server string = Sambaserver
        security = user
        netbios name = FREEBSD
        log file = /usr/local/samba/var/log.%m
        max log size = 50
    
    [myshare]
            comment = tomato
            path = /data2/samba
            valid users = frojnd
            read only = No
            available = yes
    
    But I don't know if this is safe or not?
     

Share This Page