I have several smb shares on linux boxes that I need access to and for the life of me I cannot make mount_smbfs work with the automounter. I can manually run the mount command as root and specify the password, but any attempt to add the mount line to /etc/auto_misc (a map file that puts stuff under /misc) or to automatically specify the password thru the .nsmbrc and /etc/nsmb.conf config files and I either break my mount map in the first case, or get an authorization error in the second.
I know automount works because in the preceding map line I mount an nfs4 partition from a server flawlessly. When I add the
sharename -fstype=smbfs,N //USER@FILES/sharename
map on the next line though, the whole map file becomes invalid.
I am aware of the wins vs dns name issues. While no wins server is running, I have tried specifying server DNS and IP using -I 10.1.11.118 component in the mount. Again, that works when I specify the password manually but I cannot get any connection thru the config files that should be read to provide wins translation and user/password information for my shares. I'm always attempting the mounts as root or under sudo so I wouldn't expect $HOME/.nsmbrc to be in play.
trying in /etc/nsmb.conf
[FILES]
addr=10.1.11.118
[FILES:USER]
password=mypassword
There are about a dozen ways to specify user credentials under SMB, so why does this have to be so hard? Will the automounter map or the mount command recognize user%password as part of the share URI?
I need these mounts thru the automounter. under linux they work flawlessly using autofs maps, and credential files or user=,password= in the mount lines.
I know automount works because in the preceding map line I mount an nfs4 partition from a server flawlessly. When I add the
sharename -fstype=smbfs,N //USER@FILES/sharename
map on the next line though, the whole map file becomes invalid.
I am aware of the wins vs dns name issues. While no wins server is running, I have tried specifying server DNS and IP using -I 10.1.11.118 component in the mount. Again, that works when I specify the password manually but I cannot get any connection thru the config files that should be read to provide wins translation and user/password information for my shares. I'm always attempting the mounts as root or under sudo so I wouldn't expect $HOME/.nsmbrc to be in play.
trying in /etc/nsmb.conf
[FILES]
addr=10.1.11.118
[FILES:USER]
password=mypassword
There are about a dozen ways to specify user credentials under SMB, so why does this have to be so hard? Will the automounter map or the mount command recognize user%password as part of the share URI?
I need these mounts thru the automounter. under linux they work flawlessly using autofs maps, and credential files or user=,password= in the mount lines.