pavement

Users, adding

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
Please feel free to [http://bsdwiki.tehinterweb.net/index.php?title=Adding_users&action=edit edit] this and put some content in it.
+
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?) --[[User:Jimbo|Jimbo]] 06:09, 25 Aug 2004 (GMT)
  
 
[[Category:Common Tasks]]
 
[[Category:Common Tasks]]

Revision as of 01:09, 25 August 2004

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