CIFS on OS X - does it work?

Discussion in 'Tomato Firmware' started by Dryvlyne, Jan 3, 2009.

  1. Dryvlyne

    Dryvlyne Addicted to LI Member

    Anyone been able to get CIFS working on an OS X system? Specifically, 10.5.6. I've tried many things, but just can't get it to work. I have been receiving one of the following 2 errors in my efforts...

    CIFS VFS: cifs_mount failed w/return code = -13

    CIFS VFS: cifs_mount failed w/return code = -22

    I can't even find accurate information as to what each error code even means. Perhaps if someone can clarify this for me that will at least help point me in the right direction.

  2. dvaskelis

    dvaskelis Network Guru Member

    Google around for Samba for Mac OS X for hints and tips on configuration. Mac OS X 10.5 Leopard includes Samba 3 and even allows configuring the basics via System Preferences. In the latest version of OS X, go to System Preferences, Sharing, File Sharing, Options, and then make sure you check "Share files and folders using SMB".

    In Tomato's CIFS client, for UNC name make sure it's reachable by Tomato, such as via numeric IP address. This probably means something like \\\shortname, where shortname is the "Short Name" of the user whose home directory you are sharing. Don't forget to fill in the user ID (should be exact same as shortname) and password.

    Looking at my Tomato I also have filled in "Workgroup" for domain, but I did this so long ago I don't think it's important. :)
  3. Dryvlyne

    Dryvlyne Addicted to LI Member

    Well, I think I'm getting closer. I did forget to check the box for "Share files and folders using SMB". Now that I've done that I am receiving the following error code...

    CIFS VFS: cifs_mount failed w/return code = -6

    What does this mean?

  4. Dryvlyne

    Dryvlyne Addicted to LI Member

    Got it... finally! I didn't have the UNC path correct. Well, I did, but apparently I wasn't supposed to explicitly define the entire path. I just need to have it like so \\IPofMachine\NameOfSharedFolder.

    Man, this has been driving me crazy for a long time. In fact, I had given up on this several months back, but I'm glad I stuck it out this time and got it figured out. Thanks for the assist on enabling my account for SMB access, I definitely overlooked that.

    Peace :thumbup:

    I also wanted to mention, for the sake of others, it would be nice if a link or list of common CIFS error codes and what they mean was added to the FAQ. To me half the battle was just trying to figure out what these error codes were trying to tell me.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice