user-management.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 20 Apr 2009 18:52:20 +0300
changeset 96 22b335774c80
parent 30 dfe25e0fd9a2
child 735 5c437e2d5fe1
permissions -rw-r--r--
Setup gmail.

-*- outline -*-

* Solaris.

Add new user:

  $ 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.

On Solaris /home dir inaccessible for creating home dir.

Change attribute already existing user:

  $ 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