paxstation.blogg.se

Add new user to mac
Add new user to mac







Finally, you may want to make the user a member of the admin group so they have administrative access.

add new user to mac

Run this command, then enter the password twice when prompted: $ sudo passwd henr圜hanging password for henry.New password:Retype new password:Next, you need to create a group for the user Panther uses individual groups for each user, which have the same GID as the user's UID: $ echo 'henry:*:512:henry' | sudo niload -v group /This command creates the group named henry, gives it the GID of 512, and adds the user henry to the group, all in one step. After you've run the command to create the new user, you need to set the user's password. The shell asks for your password, since the second part of the command contains the sudo command, then displays information regarding the additions it has made to the NetInfo database. It's been shown on two lines for a narrower page display. It uses the format of a standard passwrd file, which is that of a series of fields separated by colons (the $ is just the command prompt don't type it): $ echo 'henry::512:512::0:0:Henry James:/Users/henry:/bin/bash' | sudo niload -v passwd /The above is one long line with a space replacing the line break. The following command uses the niload command to load information directly into NetInfo.

add new user to mac

Here is how to do it, creating a new user named Henry James, with a short name of henry.įirst, you need to run a command to populate the NetInfo database with the appropriate information for a user account.

add new user to mac

Doing so requires several steps, but in Panther, this is relatively easy to do.Ĭreating user accounts from the command line uses the niload (NetInfo load) command together with a few other commands to create the new user's account and all necessary settings. While the System Preferences, and the Accounts pane specifically, let you easily create user accounts in Mac OS X, you may need to do so, at times, from the command line.









Add new user to mac