I'm using a launch daemon based script to create a mount point and use "mount -t smbfs" to mount a common DFS share.
The script works fine, however the issue I'm encountering is.
The first user to login after imaging creates the mount point the permissions on the directory are preventing subsequent users who login from mounting the common DFS share.
A number of forum's I've visited all suggest that a logout hook script to umount the share is the way to go.
I'd like to stick with local scripts as the next phase will be to modify the script to only Map drives when connected to specific wired/wireless networks.
Is there a better way to map the common DFS share?
Logout hook's I thought were deprecated. What's the preferred method to run a script at logout/shutdown?
Thanks
