# HG changeset patch # User Oleksandr Gavenko # Date 1234255600 -7200 # Node ID dfe25e0fd9a2ed95305666d9431d609cb5ef9dd4 # Parent 6c01de88f39ec3d81d31c45fdcc5591e7689719a How add user for freebsd. diff -r 6c01de88f39e -r dfe25e0fd9a2 user-management.rst --- a/user-management.rst Fri Feb 06 11:04:35 2009 +0200 +++ b/user-management.rst Tue Feb 10 10:46:40 2009 +0200 @@ -1,10 +1,10 @@ -*- outline -*- -*Solaris +* Solaris. Add new user: - $ useradd -d /export/home/fred -m -s /bin/ksh -c "Fred Smith" fred + $ useradd -d /export/home/fred -m -s /bin/ksh -c "Fred Smith" fred where -d path to HOME dir, -m make home directory and copy the default skeleton files, -s your favourite shell, -c your full name. @@ -13,4 +13,17 @@ Change attribute already existing user: - $ usermod -d /export/home/new-home-dir -s /usr/bin/bash + $ usermod -d /export/home/new-home-dir -s /usr/bin/bash + +* FreeBSD. + +Add existing user to group: + + $ pw usermod user-name -G to-group + +Add a new user to group: + + $ pw useradd jerry -G sales + $ passwd jerry + +