Note: This web site is only kept up to date for OSG Software 1.2 (VDT 2.0.0). If you are looking for information for the most recent release, the RPM-based OSG Software 3.0, please see the OSG documentation web site
No netinfo in Mac OS X 10.5 (Leopard)? More details
Mac OS X uses the NetInfo system for storing directory information about system resources, including users. Therefore, to perform basic system administration tasks, you must use the NetInfo system instead of more traditional *nix administrative utilities.
This procedure was adapted from Apple documentation and other readings on NetInfo for Mac OS X:
/) domain under the category /users
niutil -create / /users/<username>
niutil -createprop / /users/<username> uid <uid> niutil -createprop / /users/<username> gid <uid> niutil -createprop / /users/<username> shell /bin/bash niutil -createprop / /users/<username> home /Users/<username> niutil -createprop / /users/<username> realname "User Name"
niutil -create / /groups/<username> niutil -createprop / /groups/<username> gid <uid> niutil -createprop / /groups/<username> users <username>
mkdir -p /Users/<username> chown <username>:<username> /Users/<username>
niutil -createprop / /users/<username> _shadow_passwd passwd <username>
niutil -appendprop / /groups/admin users <username>