To create a new user in Mac terminal, use the following command:useradd -G “MacUser” -D “Password” -s /Users/MacUser -m “MyUser”The -G flag sets the user’s group membership to the group “MacUser” and the -D flag sets the user’s default password. The -s flag sets the user’s home directory to the directory “/Users/MacUser” and the -m flag sets the user’s name to “MyUser”.
How do I login as admin on Mac terminal?
There is no one definitive answer to this question. Different Mac terminals have different ways of logging in as administrator, so it may vary depending on your terminal.
What to do if there is no admin on Mac?
If there is no admin on Mac, you can use the sudo command to execute a command in a user’s account.