Thursday, August 20, 2009

Troubleshooting: MCX in Leopard

Troubleshooting: MCX
•  Launch Terminal
•  Run the mcxquery command
– mcxquery –user
– mcxquery –group
– mcxquery –computer

Troubleshooting: MCX
•  Login as the user.
•  Launch System Profiler from /
Applications/Utilities
•  On the left, under Software, select
Managed Preferences.
•  On the right the details of the
preferences being applied to the
Computer.

Troubleshooting: MCX
•  sudo dscl . –delete /Computers
•  sudo rm –rf /Library/Managed\
Preferences

Hint found here:
Keep Control of Your School’s Leopard by Amanda Kunes.

Wednesday, June 3, 2009

createmobileaccount

creste a mobile account:


/System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount

usage: createmobileaccount -n username [-h homepath] [-P | [-p password]] [-e] [-q] [[-x] | [-X]] [[-s] | [-S]] [-u syncURL] [-v]
-n username : user record name
-h homepath : user home path; Default is "/Users/"
-p password : user password
-P : prompt for password. A password is required for FileVault home
-e encrypt : encrypt new home with FileVault
-q quota : max size in bytes of FileVault home
-x : create as external account on non-boot volumes. Default
-X : create as mobile account account non-boot volumes.
-s : set home sync on if home created.
-S : set home sync off if home created. Default.
-u syncURL : server target of home synchronization
-v : verbose output

Examples:
createmobileaccount -n jsmith
createmobileaccount -v -P -x -n jsmith
createmobileaccount -vsdn jsmith -h /Volumes/HD3/jhome
createmobileaccount -i

Notes:
- createmobileaccount must run as root.
- If you do not specify a password, the account's cached password will be created during the account's first log in.