This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_nis [2021/03/11 11:07] val [Настраиваем unix атрибуты пользователей] |
сервис_nis [2024/07/22 08:23] (current) val |
||
---|---|---|---|
Line 4: | Line 4: | ||
===== Настройка Unix сервера ===== | ===== Настройка Unix сервера ===== | ||
+ | |||
+ | * [[Управление учетными записями в Linux#Создание тестового набора учетных записей]] | ||
==== Инсталляция, инициализация БД и запуск ==== | ==== Инсталляция, инициализация БД и запуск ==== | ||
Line 23: | Line 25: | ||
corpX.un | corpX.un | ||
</code><code> | </code><code> | ||
- | root@server:~# cat /etc/default/nis | + | debian10_ubuntu20# cat /etc/default/nis |
</code><code> | </code><code> | ||
... | ... | ||
Line 31: | Line 33: | ||
... | ... | ||
</code><code> | </code><code> | ||
- | debian10# cat /etc/default/rpcbind | + | debian10/11/12_ubuntu20# cat /etc/default/rpcbind |
</code><code> | </code><code> | ||
OPTIONS="-w -r" | OPTIONS="-w -r" | ||
</code><code> | </code><code> | ||
- | root@server:~# init 6 | + | debian10_ubuntu20# init 6 |
+ | |||
+ | debian11/12# systemctl enable ypserv | ||
+ | |||
+ | debian11/12# systemctl start ypserv | ||
root@server:~# /usr/lib/yp/ypinit -m | root@server:~# /usr/lib/yp/ypinit -m | ||
Line 44: | Line 50: | ||
... | ... | ||
</code><code> | </code><code> | ||
- | root@server:~# service nis restart | + | debian10# service nis restart |
</code> | </code> | ||
Line 152: | Line 158: | ||
corpX.un | corpX.un | ||
</code><code> | </code><code> | ||
- | root@client1:~# ypcat passwd | + | debian11/12# cat /etc/yp.conf |
</code><code> | </code><code> | ||
+ | ... | ||
+ | domain corpX.un server 192.168.X.10 | ||
+ | </code><code> | ||
+ | debian11/12# systemctl enable ypbind | ||
+ | |||
+ | debian11/12# systemctl start ypbind | ||
+ | |||
+ | root@client1:~# ypcat passwd | ||
+ | </code> | ||
+ | |||
+ | * [[Использование библиотеки NSSWITCH]] | ||
+ | |||
+ | <code> | ||
client1:~# cat /etc/nsswitch.conf | client1:~# cat /etc/nsswitch.conf | ||
</code><code> | </code><code> | ||
Line 176: | Line 195: | ||
... | ... | ||
+ | + | ||
+ | </code><code> | ||
+ | debian11# service nscd restart && service nscd reload | ||
</code> | </code> | ||
- | |||
==== FreeBSD ==== | ==== FreeBSD ==== | ||
<code> | <code> |