We have Mac OS X client computers which bind to a Mac OS X 10.2 server.
There are two usernames set up in the NetInfo directory; Student and Teacher.
The "Student" user belongs to several workgroups, eg. "year1", "year2", etc. so that the student can pick which year they are in and get a different set of Dock preferences.
My question is, can I somehow determine, in a shell script, which workgroup the user has chosen? If I want to find out which user is logged in I can use the global variable $USER, but there doesn't seem to be a variable for the current workgroup.
Cockle Bay School
Auckland, New Zealand