Mac OSX and .nsmbrc

Discussion in 'Computer Gaming Forum' started by Pikmin, Oct 3, 2012.

  1. Pikmin

    Pikmin Resolute Member

    Joined:
    Dec 23, 2009
    Messages:
    935
    Likes Received:
    95
    Need some help with mounting samba shares through Terminal

    The 'normal' way makes sense, and works fine:

    mount_smbfs //user:pass@server-ip/share ~/mount-folder

    I don't want to have to type in the password every time, and after some reading there are two files that might allow to do what I'm after- nsmb.conf and .nsmbrc

    .nsmbrc file should be in the user's home directory (/Users/Pikmin/.nsmbrc)

    Contents of my .nsmbrc file:

    [linuxsmbserver:pikmin:share]
    addr=ipaddress
    password=password

    When I try to run mount_smbfs //server-ip/share ~/mount-folder it still asks me for a password, and I don't think it reads the username from .nsmbrc file either.

    If I run it with -N (not to ask for password) it comes up with:
    Connecting with anonymous authentication.
    mount_smbfs: mount error: etc

    Did anyone manage to get this working using the .nsmbrc file?

    Running Snow Leopard

    Also automount is very useful and I managed to create a map that mounts all my shares automatically which is great but I want to know the .nsmbrc way too
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page