Hi all,
New to the forum - so I apologies if this query is in the wrong place.
I work in a secondary school and we have an AD/OD environment. Users authenticate via their AD username/password and OD is used to define any policies via workgroup manager on our XServe running Lion Server.
We have 25 iMac clients all running Lion - all I'm trying to do is place an alias on the desktop when a pupil logs in which directs them to an SMB share on a Windows 2008 server (<server>\shared docs\garageband>)
The SMB share is called "garageband" and it allows pupils to drag their garageband work into it for teachers to see and review - pupils can read/write to this share.
Now, so far I've created the following shell script, called garageband.sh, changed it to executable (chmod +x garageband.sh) and placed it in /Library/Scripts:
This works, providing the smb /volumes/garageband is mapped when authenticated users first logon (this is done via workgroup manager).
I've then followed various tutorials on how to make loginhooks work on the client: http://krypted.com/mac-os-x/login-logout-hooks/
However, when I log into the client - nothing happens. It does not create an alias on the desktop.
I've also tried adding the garageband.sh script to Workgroup Manager - computer group - preferences - login scripts - garageband.sh scripts. However the clients ignore it.
I'm no pro when it comes to scripting, and what makes it worse is that I didn't setup the OSX server or environment in the first place.
Any suggestions would be helpful. Thanks guys.
New to the forum - so I apologies if this query is in the wrong place.
I work in a secondary school and we have an AD/OD environment. Users authenticate via their AD username/password and OD is used to define any policies via workgroup manager on our XServe running Lion Server.
We have 25 iMac clients all running Lion - all I'm trying to do is place an alias on the desktop when a pupil logs in which directs them to an SMB share on a Windows 2008 server (<server>\shared docs\garageband>)
The SMB share is called "garageband" and it allows pupils to drag their garageband work into it for teachers to see and review - pupils can read/write to this share.
Now, so far I've created the following shell script, called garageband.sh, changed it to executable (chmod +x garageband.sh) and placed it in /Library/Scripts:
Code:
#!/bin/bash
osascript -e 'tell application "Finder"' -e 'make new alias to folder (posix file "/Volumes/GarageBand") at desktop' -e 'end tell'
This works, providing the smb /volumes/garageband is mapped when authenticated users first logon (this is done via workgroup manager).
I've then followed various tutorials on how to make loginhooks work on the client: http://krypted.com/mac-os-x/login-logout-hooks/
However, when I log into the client - nothing happens. It does not create an alias on the desktop.
I've also tried adding the garageband.sh script to Workgroup Manager - computer group - preferences - login scripts - garageband.sh scripts. However the clients ignore it.
I'm no pro when it comes to scripting, and what makes it worse is that I didn't setup the OSX server or environment in the first place.
Any suggestions would be helpful. Thanks guys.