This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_nis [2022/10/01 21:12] val [Инсталляция, инициализация БД и запуск] |
сервис_nis [2024/07/22 08:23] (current) val |
||
---|---|---|---|
Line 4: | Line 4: | ||
===== Настройка Unix сервера ===== | ===== Настройка Unix сервера ===== | ||
+ | |||
+ | * [[Управление учетными записями в Linux#Создание тестового набора учетных записей]] | ||
==== Инсталляция, инициализация БД и запуск ==== | ==== Инсталляция, инициализация БД и запуск ==== | ||
Line 31: | Line 33: | ||
... | ... | ||
</code><code> | </code><code> | ||
- | debian10/11_ubuntu_20# 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> | ||
- | debian10# init 6 | + | debian10_ubuntu20# init 6 |
- | debian11# systemctl enable ypserv | + | debian11/12# systemctl enable ypserv |
- | debian11# systemctl start ypserv | + | debian11/12# systemctl start ypserv |
root@server:~# /usr/lib/yp/ypinit -m | root@server:~# /usr/lib/yp/ypinit -m | ||
Line 156: | Line 158: | ||
corpX.un | corpX.un | ||
</code><code> | </code><code> | ||
- | debian11# cat /etc/yp.conf | + | debian11/12# cat /etc/yp.conf |
</code><code> | </code><code> | ||
... | ... | ||
- | domain corpX.un server server.corpX.un | + | domain corpX.un server 192.168.X.10 |
</code><code> | </code><code> | ||
- | debian11# systemctl enable ypbind | + | debian11/12# systemctl enable ypbind |
- | debian11# systemctl start ypbind | + | debian11/12# systemctl start ypbind |
root@client1:~# ypcat passwd | root@client1:~# ypcat passwd | ||
Line 194: | Line 196: | ||
+ | + | ||
</code><code> | </code><code> | ||
- | debian11# service nscd restart | + | debian11# service nscd restart && service nscd reload |
</code> | </code> | ||
==== FreeBSD ==== | ==== FreeBSD ==== |