How do I add a username alias using the command line?
I can do it fine using the preferences dialog through the "Advanced Options", but I need to do it during an installation script.
Can someone point me the right way?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
The information is accessible through
dscl. To add the alias "visitor" and be able to use this username for guest login, use the following command:
sudo dscl . -merge Users/Guest RecordName visitor