Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wizard210

macrumors newbie
Original poster
Jun 9, 2011
1
0
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

Code:
#!/bin/bash -f
username=$1
mkdir /Users/$username/Share
mount -t smbfs //$username@172.16.2.9/Students/$username /Users/$username/Share
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.