# HG changeset patch # User Oleksandr Gavenko # Date 1234255628 -7200 # Node ID 835176825ec14c45d1cf59d70847a3c3e4f696bd # Parent 49654be6f3ec3585748db573520c6abedbb8bc22# Parent dfe25e0fd9a2ed95305666d9431d609cb5ef9dd4 Automated merge with file:///srv/hg/admin-doc diff -r 49654be6f3ec -r 835176825ec1 user-management.rst --- a/user-management.rst Mon Feb 09 15:04:08 2009 +0200 +++ b/user-management.rst Tue Feb 10 10:47:08 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 + +