pavement

Users, adding

From FreeBSDwiki
Revision as of 02:09, 25 August 2004 by Jimbo (Talk | contribs)
Jump to: navigation, search

There are several methods that are commonly used to add users to a FreeBSD system.

Using pw to add a new user

ph34r# pw useradd username -g groupname -s /bin/csh -d /home/username

The command shown above will add a new user account named "username", assign the group "groupname" as the new user's primary group, set the C shell as its default shell on login, and set its home directory as "/home/username". It will not copy any .profile or similar files from /etc/skel, create any directories, or anything else - all pw does is manipulate the system user database for you.

See also: Modifying users


Using adduser to add a new user

(I don't actually use adduser. Anyone?) --Jimbo 06:09, 25 Aug 2004 (GMT)

Personal tools