NIS/rockylinux9 をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
nisがRHEL9から使えなくなった
でも既存のnisシステムがあるので外せない. なら作ってしまお...
ここではクライアントのypbindを扱います.
gitでypbindのソースが公開されている
[[https://github.com/thkukuk/ypbind-mt>+https://github.co...
同じように
libnss
[[https://github.com/thkukuk/libnss_nis>+https://github.c...
yp-tools
[[https://github.com/thkukuk/yp-tools>+https://github.com...
と用意されている
***ypbind-mt [#n28107ac]
#code(nonumber){{
[root@rockylinux9 ~]# cat /etc/redhat-release
Rocky Linux release 9.4 (Blue Onyx)
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# git clone https://github.com/thkuku...
[root@rockylinux9 ~]# cd ypbind-mt
[root@rockylinux9 ypbind-mt]# git checkout v2.7.2
[root@rockylinux9 ypbind-mt]# cd ..
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# tar --exclude-vcs --transform 's/yp...
}}
rockylinux8のypbindのsrpmを取得してそれをテンプレートに作...
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh ypbind-2.5-2.el8.src.rpm
[root@rockylinux9 ~]# vi rpmbuild/SPECS/ypbind.spec
}}
SPECファイルをちょいと修正
#code(diff,nonumber){{
--- rpmbuild/SPECS/ypbind.spec.orig 2021-04-12 18:07:...
+++ rpmbuild/SPECS/ypbind.spec 2022-12-24 16:28:51.34649...
@@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NI...
Name: ypbind
Epoch: 3
-Version: 2.5
+Version: 2.7.2
Release: 2%{?dist}
License: GPLv2
Group: System Environment/Daemons
@@ -58,7 +58,7 @@
%patch1 -p1 -b .gettextdomain
%patch2 -p1 -b .helpman
#%patch3 -p1 -b .systemdso
-%patch4 -b .gettext_version
+#%patch4 -b .gettext_version
autoreconf -fiv
}}
gitから取得したソースを rpmbuild/SOURCES に移してrpmbuild...
#code(nonumber){{
[root@rockylinux9 ~]# dnf --enablerepo=devel install dbus...
[root@rockylinux9 ~]# cp ypbind-mt-2.7.2.tar.gz rpmbuild/...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/ypbind....
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/ypbind-*
-rw-r--r--. 1 root root 53515 Oct 14 00:54 ypbind-2.7....
-rw-r--r--. 1 root root 61045 Oct 14 00:54 ypbind-debu...
-rw-r--r--. 1 root root 27247 Oct 14 00:54 ypbind-debu...
[root@rockylinux9 ~]#
}}
このypbindを入れれば..になりますが、あとnss_nisとyp-tools...
***nss_nis [#q0264845]
同じように
#code(nonumber){{
[root@rockylinux9 ~]# git clone https://github.com/thkuku...
[root@rockylinux9 ~]# cd libnss_nis
[root@rockylinux9 libnss_nis]# git checkout v3.2
[root@rockylinux9 libnss_nis]# cd ..
[root@rockylinux9 ~]# tar --exclude-vcs --transform 's/li...
}}
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh nss_nis-3.0-8.el8.src.rpm
[root@rockylinux9 ~]# vi rpmbuild/SPECS/nss_nis.spec
}}
#code(diff,nonumber){{
--- rpmbuild/SPECS/nss_nis.spec.orig 2021-04-12 14:14:...
+++ rpmbuild/SPECS/nss_nis.spec 2023-08-22 20:15:35.52900...
@@ -1,11 +1,11 @@
Name: nss_nis
-Version: 3.0
+Version: 3.2
Release: 8%{?dist}
Summary: Name Service Switch (NSS) module using NIS
License: LGPLv2+
Group: System Environment/Base
Url: https://github.com/thkukuk/libnss_nis
-Source: https://github.com/thkukuk/libnss_nis/ar...
+Source: https://github.com/thkukuk/libnss_nis/ar...
# https://github.com/systemd/systemd/issues/7074
Source2: nss_nis.conf
}}
#code(nonumber){{
[root@rockylinux9 ~]# cp libnss_nis-3.2.tar.gz rpmbuild/S...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/nss_nis...
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/nss_nis-*
-rw-r--r--. 1 root root 41646 Oct 14 00:57 nss_nis-3.2...
-rw-r--r--. 1 root root 77067 Oct 14 00:57 nss_nis-deb...
-rw-r--r--. 1 root root 28048 Oct 14 00:57 nss_nis-deb...
[root@rockylinux9 ~]#
}}
***yp-tools [#o15e2a7b]
git由来のversionを調べたら Rokylinux8 と同じ 4.2.3 なので...
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpmbuild --rebuild yp-tools-4.2.3-2...
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/yp-tools-*
-rw-r--r--. 1 root root 84056 Oct 14 00:58 rpmbuild/RPMS/...
-rw-r--r--. 1 root root 91355 Oct 14 00:58 rpmbuild/RPMS/...
-rw-r--r--. 1 root root 26816 Oct 14 00:58 rpmbuild/RPMS/...
[root@rockylinux9 ~]#
}}
***nisをインストール [#j5f8bbdf]
っでインストール
#code(nonumber){{
[root@rockylinux9 ~]# dnf localinstall rpmbuild/RPMS/x86_...
rpmbuild/RPMS/x86_...
rpmbuild/RPMS/x86_...
[root@rockylinux9 ~]# vi /etc/yp.conf
domain sybyl server nis
[root@rockylinux9 ~]# systemctl enable ypbind --now
}}
これで直接pamやnsswitch.confを修正させてnis対応にすること...
っが、RHEL9で提供される authselect はRHEL9の方針でnisのサ...
本来のauthselectはnisもカバー範囲でオリジナルをみると今時...
[[https://github.com/authselect/authselect>+https://githu...
なのでsrpmを取得してnis排除を無効にしてみた
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh authselect-1.2.6-2.el9.src...
[root@rockylinux9 ~]# vi rpmbuild/SPECS/authselect.spec
}}
#code(diff,nonumber){{
--- rpmbuild/SPECS/authselect.spec.orig 2023-11-04 06:54:...
+++ rpmbuild/SPECS/authselect.spec 2024-10-14 01:02:...
@@ -18,7 +18,6 @@
Patch0901: 0901-rhel9-remove-mention-of-Fedora-Change-p...
Patch0902: 0902-rhel9-remove-ecryptfs-support.patch
Patch0903: 0903-rhel9-Revert-profiles-add-support-for-r...
-Patch0904: 0904-rhel9-remove-nis-support.patch
Patch0905: 0905-rhel9-Revert-yescrypt.patch
%global makedir %{_builddir}/%{name}-%{version}
@@ -151,6 +150,7 @@
%dir %{_datadir}/authselect/vendor
%dir %{_datadir}/authselect/default
%dir %{_datadir}/authselect/default/minimal/
+%dir %{_datadir}/authselect/default/nis/
%dir %{_datadir}/authselect/default/sssd/
%dir %{_datadir}/authselect/default/winbind/
%{_datadir}/authselect/default/minimal/dconf-db
@@ -163,6 +163,16 @@
%{_datadir}/authselect/default/minimal/REQUIREMENTS
%{_datadir}/authselect/default/minimal/smartcard-auth
%{_datadir}/authselect/default/minimal/system-auth
+%{_datadir}/authselect/default/nis/dconf-db
+%{_datadir}/authselect/default/nis/dconf-locks
+%{_datadir}/authselect/default/nis/fingerprint-auth
+%{_datadir}/authselect/default/nis/nsswitch.conf
+%{_datadir}/authselect/default/nis/password-auth
+%{_datadir}/authselect/default/nis/postlogin
+%{_datadir}/authselect/default/nis/README
+%{_datadir}/authselect/default/nis/REQUIREMENTS
+%{_datadir}/authselect/default/nis/smartcard-auth
+%{_datadir}/authselect/default/nis/system-auth
%{_datadir}/authselect/default/sssd/dconf-db
%{_datadir}/authselect/default/sssd/dconf-locks
%{_datadir}/authselect/default/sssd/fingerprint-auth
}}
#code(nonumber){{
[root@rockylinux9 ~]# dnf --enablerepo=devel install libc...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/authsel...
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/authsele...
-rw-r--r--. 1 root root 143120 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 33165 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 38782 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 51186 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 12093 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 242934 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 97197 Oct 14 01:03 rpmbuild/RPMS...
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# dnf reinstall rpmbuild/RPMS/x86_64/...
[root@rockylinux9 ~]# authselect list
- minimal Local users only for minimal installations
- nis Enable NIS for system authentication
- sssd Enable SSSD for system authentication (a...
- winbind Enable winbind for system authentication
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# authselect select nis --force
}}
これでnisサーバからアカウント情報が引けます.
RHEL9でサポートから外したnisを復活させてみたけど、自己責...
***autofs [#r7807e38]
忘れてたautofsもnis対応に戻します
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh autofs-5.1.7-58.el9.src.rpm
[root@rockylinux9 ~]# vi rpmbuild/SOURCES/autofs-5.1.7-fi...
}}
#code(diff,nonumber){{
--- rpmbuild/SOURCES/autofs-5.1.7-fix-dangling-symlink-cr...
+++ rpmbuild/SOURCES/autofs-5.1.7-fix-dangling-symlink-cr...
@@ -21,15 +21,3 @@
25/01/2021 autofs-5.1.7
- make bind mounts propagation slave by default.
---- autofs-5.1.7.orig/modules/Makefile
-+++ autofs-5.1.7/modules/Makefile
-@@ -77,7 +77,9 @@ install: all
- install -c $(MODS) -m 755 $(INSTALLROOT)$(autofsl...
- -rm -f $(INSTALLROOT)$(autofslibdir)/mount_smbfs.so
- ln -fs lookup_file.so $(INSTALLROOT)$(autofslibdi...
-+ifeq ($(YPCLNT), 1)
- ln -fs lookup_yp.so $(INSTALLROOT)$(autofslibdir)...
-+endif
- ifeq ($(LDAP), 1)
- ln -fs lookup_ldap.so $(INSTALLROOT)$(autofslibdi...
- endif
}}
#code(nonumber){{
[root@rockylinux9 ~]# dnf install cyrus-sasl-devel krb5-d...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/autofs....
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/autofs-*
-rw-r--r--. 1 root root 385292 Oct 14 01:08 rpmbuild/RPMS...
-rw-r--r--. 1 root root 725206 Oct 14 01:08 rpmbuild/RPMS...
-rw-r--r--. 1 root root 270815 Oct 14 01:08 rpmbuild/RPMS...
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# dnf install nfs-utils
[root@rockylinux9 ~]# dnf localinstall rpmbuild/RPMS/x86_...
(既にautofsが入っていたら)
[root@rockylinux9 ~]# dnf reinstall rpmbuild/RPMS/x86_64/...
}}
***ypserv [#b6b57087]
本家様 [[https://github.com/thkukuk/ypserv>+https://githu...
nisサーバもrockylinux9 で賄うなら.
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh ypserv-4.1-1.el8.src.rpm
[root@rockylinux9 ~]# git clone https://github.com/thkuku...
[root@rockylinux9 ~]# cd ypserv
[root@rockylinux9 ypserv]# git checkout v4.2
[root@rockylinux9 ypserv]# cd ..
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# tar --exclude-vcs --transform 's/yp...
[root@rockylinux9 ~]# cp ypserv-4.2.tar.gz rpmbuild/SOURC...
[root@rockylinux9 ~]# vi rpmbuild/SPECS/ypserv.spec
}}
rockylinux8のypservを参照に作ります
#code(diff,nonumber){{
--- rpmbuild/SPECS/ypserv.spec.orig 2022-04-17 10:11:...
+++ rpmbuild/SPECS/ypserv.spec 2023-08-22 20:32:33.73888...
@@ -3,11 +3,11 @@
Summary: The NIS (Network Information Service) server
Url: http://www.linux-nis.org/nis/ypserv/index.html
Name: ypserv
-Version: 4.1
+Version: 4.2
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Daemons
-Source0: https://github.com/thkukuk/%{name}/archive/v%{v...
+Source0: https://github.com/thkukuk/%{name}/archive/v%{v...
Source1: ypserv.service
Source2: yppasswdd.service
Source3: ypxfrd.service
}}
#code(nonumber){{
[root@rockylinux9 ~]# dnf --enablerepo=devel install toky...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/ypserv....
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/ypserv-*
-rw-r--r--. 1 root root 156556 Oct 14 01:11 rpmbuild/RPMS...
-rw-r--r--. 1 root root 198005 Oct 14 01:11 rpmbuild/RPMS...
-rw-r--r--. 1 root root 64892 Oct 14 01:11 rpmbuild/RPMS...
[root@rockylinux9 ~]#
}}
***update禁止 [#od674ee7]
dnfで上書きされて困るので「/etc/yum.conf」に下記を加えて...
#code(nonumber){{
exclude=ypbind nss_nis yp-tools authselect-libs autofs
}}
終了行:
nisがRHEL9から使えなくなった
でも既存のnisシステムがあるので外せない. なら作ってしまお...
ここではクライアントのypbindを扱います.
gitでypbindのソースが公開されている
[[https://github.com/thkukuk/ypbind-mt>+https://github.co...
同じように
libnss
[[https://github.com/thkukuk/libnss_nis>+https://github.c...
yp-tools
[[https://github.com/thkukuk/yp-tools>+https://github.com...
と用意されている
***ypbind-mt [#n28107ac]
#code(nonumber){{
[root@rockylinux9 ~]# cat /etc/redhat-release
Rocky Linux release 9.4 (Blue Onyx)
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# git clone https://github.com/thkuku...
[root@rockylinux9 ~]# cd ypbind-mt
[root@rockylinux9 ypbind-mt]# git checkout v2.7.2
[root@rockylinux9 ypbind-mt]# cd ..
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# tar --exclude-vcs --transform 's/yp...
}}
rockylinux8のypbindのsrpmを取得してそれをテンプレートに作...
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh ypbind-2.5-2.el8.src.rpm
[root@rockylinux9 ~]# vi rpmbuild/SPECS/ypbind.spec
}}
SPECファイルをちょいと修正
#code(diff,nonumber){{
--- rpmbuild/SPECS/ypbind.spec.orig 2021-04-12 18:07:...
+++ rpmbuild/SPECS/ypbind.spec 2022-12-24 16:28:51.34649...
@@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NI...
Name: ypbind
Epoch: 3
-Version: 2.5
+Version: 2.7.2
Release: 2%{?dist}
License: GPLv2
Group: System Environment/Daemons
@@ -58,7 +58,7 @@
%patch1 -p1 -b .gettextdomain
%patch2 -p1 -b .helpman
#%patch3 -p1 -b .systemdso
-%patch4 -b .gettext_version
+#%patch4 -b .gettext_version
autoreconf -fiv
}}
gitから取得したソースを rpmbuild/SOURCES に移してrpmbuild...
#code(nonumber){{
[root@rockylinux9 ~]# dnf --enablerepo=devel install dbus...
[root@rockylinux9 ~]# cp ypbind-mt-2.7.2.tar.gz rpmbuild/...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/ypbind....
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/ypbind-*
-rw-r--r--. 1 root root 53515 Oct 14 00:54 ypbind-2.7....
-rw-r--r--. 1 root root 61045 Oct 14 00:54 ypbind-debu...
-rw-r--r--. 1 root root 27247 Oct 14 00:54 ypbind-debu...
[root@rockylinux9 ~]#
}}
このypbindを入れれば..になりますが、あとnss_nisとyp-tools...
***nss_nis [#q0264845]
同じように
#code(nonumber){{
[root@rockylinux9 ~]# git clone https://github.com/thkuku...
[root@rockylinux9 ~]# cd libnss_nis
[root@rockylinux9 libnss_nis]# git checkout v3.2
[root@rockylinux9 libnss_nis]# cd ..
[root@rockylinux9 ~]# tar --exclude-vcs --transform 's/li...
}}
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh nss_nis-3.0-8.el8.src.rpm
[root@rockylinux9 ~]# vi rpmbuild/SPECS/nss_nis.spec
}}
#code(diff,nonumber){{
--- rpmbuild/SPECS/nss_nis.spec.orig 2021-04-12 14:14:...
+++ rpmbuild/SPECS/nss_nis.spec 2023-08-22 20:15:35.52900...
@@ -1,11 +1,11 @@
Name: nss_nis
-Version: 3.0
+Version: 3.2
Release: 8%{?dist}
Summary: Name Service Switch (NSS) module using NIS
License: LGPLv2+
Group: System Environment/Base
Url: https://github.com/thkukuk/libnss_nis
-Source: https://github.com/thkukuk/libnss_nis/ar...
+Source: https://github.com/thkukuk/libnss_nis/ar...
# https://github.com/systemd/systemd/issues/7074
Source2: nss_nis.conf
}}
#code(nonumber){{
[root@rockylinux9 ~]# cp libnss_nis-3.2.tar.gz rpmbuild/S...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/nss_nis...
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/nss_nis-*
-rw-r--r--. 1 root root 41646 Oct 14 00:57 nss_nis-3.2...
-rw-r--r--. 1 root root 77067 Oct 14 00:57 nss_nis-deb...
-rw-r--r--. 1 root root 28048 Oct 14 00:57 nss_nis-deb...
[root@rockylinux9 ~]#
}}
***yp-tools [#o15e2a7b]
git由来のversionを調べたら Rokylinux8 と同じ 4.2.3 なので...
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpmbuild --rebuild yp-tools-4.2.3-2...
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/yp-tools-*
-rw-r--r--. 1 root root 84056 Oct 14 00:58 rpmbuild/RPMS/...
-rw-r--r--. 1 root root 91355 Oct 14 00:58 rpmbuild/RPMS/...
-rw-r--r--. 1 root root 26816 Oct 14 00:58 rpmbuild/RPMS/...
[root@rockylinux9 ~]#
}}
***nisをインストール [#j5f8bbdf]
っでインストール
#code(nonumber){{
[root@rockylinux9 ~]# dnf localinstall rpmbuild/RPMS/x86_...
rpmbuild/RPMS/x86_...
rpmbuild/RPMS/x86_...
[root@rockylinux9 ~]# vi /etc/yp.conf
domain sybyl server nis
[root@rockylinux9 ~]# systemctl enable ypbind --now
}}
これで直接pamやnsswitch.confを修正させてnis対応にすること...
っが、RHEL9で提供される authselect はRHEL9の方針でnisのサ...
本来のauthselectはnisもカバー範囲でオリジナルをみると今時...
[[https://github.com/authselect/authselect>+https://githu...
なのでsrpmを取得してnis排除を無効にしてみた
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh authselect-1.2.6-2.el9.src...
[root@rockylinux9 ~]# vi rpmbuild/SPECS/authselect.spec
}}
#code(diff,nonumber){{
--- rpmbuild/SPECS/authselect.spec.orig 2023-11-04 06:54:...
+++ rpmbuild/SPECS/authselect.spec 2024-10-14 01:02:...
@@ -18,7 +18,6 @@
Patch0901: 0901-rhel9-remove-mention-of-Fedora-Change-p...
Patch0902: 0902-rhel9-remove-ecryptfs-support.patch
Patch0903: 0903-rhel9-Revert-profiles-add-support-for-r...
-Patch0904: 0904-rhel9-remove-nis-support.patch
Patch0905: 0905-rhel9-Revert-yescrypt.patch
%global makedir %{_builddir}/%{name}-%{version}
@@ -151,6 +150,7 @@
%dir %{_datadir}/authselect/vendor
%dir %{_datadir}/authselect/default
%dir %{_datadir}/authselect/default/minimal/
+%dir %{_datadir}/authselect/default/nis/
%dir %{_datadir}/authselect/default/sssd/
%dir %{_datadir}/authselect/default/winbind/
%{_datadir}/authselect/default/minimal/dconf-db
@@ -163,6 +163,16 @@
%{_datadir}/authselect/default/minimal/REQUIREMENTS
%{_datadir}/authselect/default/minimal/smartcard-auth
%{_datadir}/authselect/default/minimal/system-auth
+%{_datadir}/authselect/default/nis/dconf-db
+%{_datadir}/authselect/default/nis/dconf-locks
+%{_datadir}/authselect/default/nis/fingerprint-auth
+%{_datadir}/authselect/default/nis/nsswitch.conf
+%{_datadir}/authselect/default/nis/password-auth
+%{_datadir}/authselect/default/nis/postlogin
+%{_datadir}/authselect/default/nis/README
+%{_datadir}/authselect/default/nis/REQUIREMENTS
+%{_datadir}/authselect/default/nis/smartcard-auth
+%{_datadir}/authselect/default/nis/system-auth
%{_datadir}/authselect/default/sssd/dconf-db
%{_datadir}/authselect/default/sssd/dconf-locks
%{_datadir}/authselect/default/sssd/fingerprint-auth
}}
#code(nonumber){{
[root@rockylinux9 ~]# dnf --enablerepo=devel install libc...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/authsel...
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/authsele...
-rw-r--r--. 1 root root 143120 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 33165 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 38782 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 51186 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 12093 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 242934 Oct 14 01:03 rpmbuild/RPMS...
-rw-r--r--. 1 root root 97197 Oct 14 01:03 rpmbuild/RPMS...
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# dnf reinstall rpmbuild/RPMS/x86_64/...
[root@rockylinux9 ~]# authselect list
- minimal Local users only for minimal installations
- nis Enable NIS for system authentication
- sssd Enable SSSD for system authentication (a...
- winbind Enable winbind for system authentication
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# authselect select nis --force
}}
これでnisサーバからアカウント情報が引けます.
RHEL9でサポートから外したnisを復活させてみたけど、自己責...
***autofs [#r7807e38]
忘れてたautofsもnis対応に戻します
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh autofs-5.1.7-58.el9.src.rpm
[root@rockylinux9 ~]# vi rpmbuild/SOURCES/autofs-5.1.7-fi...
}}
#code(diff,nonumber){{
--- rpmbuild/SOURCES/autofs-5.1.7-fix-dangling-symlink-cr...
+++ rpmbuild/SOURCES/autofs-5.1.7-fix-dangling-symlink-cr...
@@ -21,15 +21,3 @@
25/01/2021 autofs-5.1.7
- make bind mounts propagation slave by default.
---- autofs-5.1.7.orig/modules/Makefile
-+++ autofs-5.1.7/modules/Makefile
-@@ -77,7 +77,9 @@ install: all
- install -c $(MODS) -m 755 $(INSTALLROOT)$(autofsl...
- -rm -f $(INSTALLROOT)$(autofslibdir)/mount_smbfs.so
- ln -fs lookup_file.so $(INSTALLROOT)$(autofslibdi...
-+ifeq ($(YPCLNT), 1)
- ln -fs lookup_yp.so $(INSTALLROOT)$(autofslibdir)...
-+endif
- ifeq ($(LDAP), 1)
- ln -fs lookup_ldap.so $(INSTALLROOT)$(autofslibdi...
- endif
}}
#code(nonumber){{
[root@rockylinux9 ~]# dnf install cyrus-sasl-devel krb5-d...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/autofs....
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/autofs-*
-rw-r--r--. 1 root root 385292 Oct 14 01:08 rpmbuild/RPMS...
-rw-r--r--. 1 root root 725206 Oct 14 01:08 rpmbuild/RPMS...
-rw-r--r--. 1 root root 270815 Oct 14 01:08 rpmbuild/RPMS...
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# dnf install nfs-utils
[root@rockylinux9 ~]# dnf localinstall rpmbuild/RPMS/x86_...
(既にautofsが入っていたら)
[root@rockylinux9 ~]# dnf reinstall rpmbuild/RPMS/x86_64/...
}}
***ypserv [#b6b57087]
本家様 [[https://github.com/thkukuk/ypserv>+https://githu...
nisサーバもrockylinux9 で賄うなら.
#code(nonumber){{
[root@rockylinux9 ~]# curl -O http://dl.rockylinux.org/pu...
[root@rockylinux9 ~]# rpm -Uvh ypserv-4.1-1.el8.src.rpm
[root@rockylinux9 ~]# git clone https://github.com/thkuku...
[root@rockylinux9 ~]# cd ypserv
[root@rockylinux9 ypserv]# git checkout v4.2
[root@rockylinux9 ypserv]# cd ..
[root@rockylinux9 ~]#
[root@rockylinux9 ~]# tar --exclude-vcs --transform 's/yp...
[root@rockylinux9 ~]# cp ypserv-4.2.tar.gz rpmbuild/SOURC...
[root@rockylinux9 ~]# vi rpmbuild/SPECS/ypserv.spec
}}
rockylinux8のypservを参照に作ります
#code(diff,nonumber){{
--- rpmbuild/SPECS/ypserv.spec.orig 2022-04-17 10:11:...
+++ rpmbuild/SPECS/ypserv.spec 2023-08-22 20:32:33.73888...
@@ -3,11 +3,11 @@
Summary: The NIS (Network Information Service) server
Url: http://www.linux-nis.org/nis/ypserv/index.html
Name: ypserv
-Version: 4.1
+Version: 4.2
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Daemons
-Source0: https://github.com/thkukuk/%{name}/archive/v%{v...
+Source0: https://github.com/thkukuk/%{name}/archive/v%{v...
Source1: ypserv.service
Source2: yppasswdd.service
Source3: ypxfrd.service
}}
#code(nonumber){{
[root@rockylinux9 ~]# dnf --enablerepo=devel install toky...
[root@rockylinux9 ~]# rpmbuild -bb rpmbuild/SPECS/ypserv....
[root@rockylinux9 ~]# ls -l rpmbuild/RPMS/x86_64/ypserv-*
-rw-r--r--. 1 root root 156556 Oct 14 01:11 rpmbuild/RPMS...
-rw-r--r--. 1 root root 198005 Oct 14 01:11 rpmbuild/RPMS...
-rw-r--r--. 1 root root 64892 Oct 14 01:11 rpmbuild/RPMS...
[root@rockylinux9 ~]#
}}
***update禁止 [#od674ee7]
dnfで上書きされて困るので「/etc/yum.conf」に下記を加えて...
#code(nonumber){{
exclude=ypbind nss_nis yp-tools authselect-libs autofs
}}
ページ名:
1