2

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?

3

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .