We have the following script running under a policy at startup and it works great.
#!/bin/bash
echo "username attempting to mount a share"
# Mount share
sudo -u username /usr/sbin/jamf mount -server servername -share sharename -type afp -username username -password password
Problem is that if we happen to login as any user, then logout, for some reason the mount goes away. Anyone know why? Is it OS X doing this? Anyway around it? Do I have to create a logout policy to remount it?
Thanks.
Mark