Hi,
I'm hoping someone could help us with an issue we are having with auto mounting smb shares on Snow Leopard/Lion machines.? We are using the OSX autofs system to have smb shares automount the same way we have nfs automounts. So we created a user that we would use for authenticating to the smb share. When we use the Go>Connect to Server and connect to our share via
smb manually, we can connect once we provide that user's credentials. We follow Apples autofs guide and posts on the web on how to do this but we have had no luck in actually auto mounting the share.
Here are the steps we used.
- I create the directory /mnts.
- In our /etc/auto_master file, we add the following line for our smb share.
???????????????? /mnts ? ? auto_smb
- Then we create an /etc/auto_smb file. In it, we have
???????????????? test??? -fstype=smbfs ://username:password@<name of server>/<share>
- We run automount -vc to apply the changes.
- I run a df -h and it shows the following but it looks like it mounted nothing.
??????????????? map auto_smb???? 0Bi??? 0Bi??? 0Bi?? 100%??? /mnts/test
- Then I try to cd into the share and it will output
??????????????? '-sh: cd: /mnts/test: Operation not permitted'.
The permissions are 555. So I should be able to cd into it. Has anyone ever experienced this or have some ideas on how to make this work?
Thanks.
--
KAR HUNG TOM
Systems Administrator
Office:???? 514 397 9999 x 430
www.rodeofx.com
By Kar Hung Tom -