AFP548

Detect Network Account

Greetings!! [b] The short version: I need to write a shell script to detect if an account logging in, is a network account or local account. Then based on that set a variable to where their home directory is.[/b] The long version: I have decided to use MCX in the fullest this summer and use my Leopard server to push all my prefs and a network login script. I would like to do this for local users and network accounts. All my prefs are pushing perfectly, but I'm stuck on my login script. I currently have a script that copies things that WGM doesn't handle like not plist preferences. it traditionally just copies things to the network account, however now I need to push to local accounts as well and I'm wondering how I can go about testing within a shell script if an account is local or networked? Thank you so much for any ideas! Steve
Exit mobile version