Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Automount Samba shares in leopard' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Automount Samba shares in leopard
Authored by: gordonlbuchanan on Jan 31, '09 09:12:58PM

This works for me, but I have a problem with permissions when used with multiple users via fast user switching. The first user of the share has no problem. Any subsequent user can not access it. I looked at the permissions with terminal.

The share is called nas:/buchanan. Before accessing it it looks like this.

$ ls -l /Network/Servers/nas
drwx------@ 1 root wheel 16384 Jan 31 23:03 buchanan

Once I read the share, then permissions change to:

$ ls -l /Network/Servers/nas
drwx------@ 1 gordon wheel 16384 Jan 31 23:03 buchanan

At this point gordon (that's me) is the only one that can use it. Any ideas on how to fix this? I'm using Leopard 10.5.6.



[ Reply to This | # ]
10.5: Automount Samba shares in leopard
Authored by: gordonlbuchanan on May 20, '09 10:34:52PM

I've solved my problem with multiple users by creating a file /etc/fstab with the following:

nas:/buchanan /Users/gordon/Shares/buchanan url automounted,url==cifs://shareuserid:password@nas/buchanan 0 0
nas:/buchanan /Users/aaron/Shares/buchanan url automounted,url==cifs://shareuserid:password@nas/buchanan 0 0
...

Make one line per userid on the Mac that wants access to the share. That way each user has their own mount point in their home/Shares directory. You can also drag a shortcut to this mount point onto your desktop for easy access. On my system, sometimes the first one or two times I try and access it I get a not found error. But if I try again then it works. I think this is because my NAS drive has gone to sleep and takes a while to spin up on access.



[ Reply to This | # ]