Hello All.
I have a mac lab in a AD environment. I was successful on binding the computers to the AD.
I've also been sucessful in getting a login hook to map the logged in users shared drive. The share is residing on a Windows 2008 server.
What's happening though is that the share is being locked and the user cannot access it. This happens for everyone, even the administrator account.
Below you'll find my code. Am I doing anything wrong in it? Is there a setting somewhere I missed.
I'm running 10.6 on the macs
I have a mac lab in a AD environment. I was successful on binding the computers to the AD.
I've also been sucessful in getting a login hook to map the logged in users shared drive. The share is residing on a Windows 2008 server.
What's happening though is that the share is being locked and the user cannot access it. This happens for everyone, even the administrator account.
Below you'll find my code. Am I doing anything wrong in it? Is there a setting somewhere I missed.
I'm running 10.6 on the macs
Code:
#!/bin/bash -f
username=$1
mkdir /Users/$username/Share
mount -t smbfs //$username@172.16.2.9/Students/$username /Users/$username/Share