Need some help with mounting samba shares through Terminal
The 'normal' way makes sense, and works fine:
mount_smbfs //user
ass@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
ikmin: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
The 'normal' way makes sense, and works fine:
mount_smbfs //user
ass@server-ip/share ~/mount-folderI 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
ikmin: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