Saved for future reference, since I don’t do it very often…
- From another admin account, open System Preferences, click Accounts.
- Control-click the username, select Advanced Options.
- Change the UID and optionally the GID.
- From a root shell, chown -R the user's files.
- If you changed the GID, run:
dseditgroup -o edit -a $USER -t user $OLDGROUP
- If you want to add more local groups to match your NFS server, run:
dseditgroup -o create -r $DESC -i $GID $GROUP