user-management.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 24 Dec 2012 13:27:30 +0200
changeset 1450 e39ad9b6224a
parent 899 7b4265c8d324
permissions -rw-r--r--
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

-*- mode: outline; coding: utf-8; -*-

* 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