author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 20 Jul 2011 10:51:44 +0300 | |
changeset 897 | b4d7d3091494 |
parent 735 | 5c437e2d5fe1 |
child 899 | 7b4265c8d324 |
permissions | -rw-r--r-- |
735 | 1 |
-*- mode: outline; coding: utf-8; fill-column: 80 -*- |
1
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
30
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
3 |
* Solaris. |
1
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
|
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
Add new user: |
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
|
30
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
7 |
$ useradd -d /export/home/fred -m -s /bin/ksh -c "Fred Smith" fred |
1
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
|
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
where -d path to HOME dir, -m make home directory and copy the default skeleton files, |
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
-s your favourite shell, -c your full name. |
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
|
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
On Solaris /home dir inaccessible for creating home dir. |
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
|
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
Change attribute already existing user: |
743f7a15697a
Move admin doc from utils proj.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
|
30
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
16 |
$ usermod -d /export/home/new-home-dir -s /usr/bin/bash |
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
17 |
|
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
18 |
* FreeBSD. |
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
19 |
|
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
20 |
Add existing user to group: |
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
21 |
|
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
22 |
$ pw usermod user-name -G to-group |
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
23 |
|
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
24 |
Add a new user to group: |
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
25 |
|
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
26 |
$ pw useradd jerry -G sales |
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
27 |
$ passwd jerry |
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
28 |
|
dfe25e0fd9a2
How add user for freebsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1
diff
changeset
|
29 |