author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 19 Oct 2015 17:04:52 +0300 | |
changeset 1769 | cadd23f8127f |
parent 899 | 7b4265c8d324 |
permissions | -rw-r--r-- |
899
7b4265c8d324
Set fill-column as directory local var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
1 |
-*- mode: outline; coding: utf-8; -*- |
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 |