1: 2021-07-10 (土) 16:59:56 iseki | 2: 2021-07-10 (土) 18:18:09 iseki | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ** NSS [#he82f6d6] | + | ** NSS (Name Service Switch)[#he82f6d6] |
- | + | - 認証は [[PAM]] が行う | |
- | ls -l /lib64/libnss_* | + | #br |
+ | *** ライブラリ [#o88afe03] | ||
+ | - /etc/nsswith.conf を見て,下記ライブラリを使用して名前解決を行う | ||
+ | # ls -l /lib64/libnss_* | ||
-rwxr-xr-x 1 root root 53504 3月 12 04:57 /lib64/libnss_compat-2.28.so* | -rwxr-xr-x 1 root root 53504 3月 12 04:57 /lib64/libnss_compat-2.28.so* | ||
lrwxrwxrwx 1 root root 21 3月 12 04:46 /lib64/libnss_compat.so.2 -> libnss_compat-2.28.so* | lrwxrwxrwx 1 root root 21 3月 12 04:46 /lib64/libnss_compat.so.2 -> libnss_compat-2.28.so* | ||
Line 15: | Line 18: | ||
-rwxr-xr-x 1 root root 46272 6月 2 04:49 /lib64/libnss_sss.so.2* | -rwxr-xr-x 1 root root 46272 6月 2 04:49 /lib64/libnss_sss.so.2* | ||
-rwxr-xr-x 1 root root 915160 6月 17 02:53 /lib64/libnss_systemd.so.2* | -rwxr-xr-x 1 root root 915160 6月 17 02:53 /lib64/libnss_systemd.so.2* | ||
+ | |||
+ | *** files [#v7386524] | ||
+ | #br | ||
+ | *** compat [#sfe47caa] | ||
+ | #br | ||
+ | *** ldap [#m7eeb5e8] | ||
+ | - [[nss_ldap]] | ||
+ | - [[nslcd]], [[nscd]] | ||
+ | #br | ||
+ | |||
+ | *** sss [#g827ce89] | ||
+ | - [[sssd]] | ||
+ | #br | ||
+ | |||
+ | *** systemd [#o88604d9] | ||
+ | - ? | ||
+ | #br | ||
+ | |||
+ | *** altfiles [#y673b3db] | ||
+ | - https://github.com/aperezdc/nss-altfiles | ||
+ | - /etc/passwd 以外のファイルを passwordファイルとして読み込める | ||
+ | |||
+ | # git clone https://github.com/aperezdc/nss-altfiles.git | ||
+ | # cd nss-altfiles/ | ||
+ | # ./configure --prefix=/usr --datadir=/etc/local --with-type=pwd,grp | ||
+ | # make | ||
+ | # make install | ||
+ | install -m 755 -d /usr/lib | ||
+ | install -m 755 libnss_altfiles.so.2 /usr/lib | ||
+ | # ln -s /usr/lib/libnss_altfiles.so.2 /usr/lib64/libnss_altfiles.so | ||
+ | # ldconfig | ||
+ | |||
+ | - /etc/nsswitch.conf | ||
+ | passwd: files altfiles | ||
+ | group: files altfiles | ||
+ | #br |
- NSS のバックアップ一覧
- NSS のバックアップ差分(No. All)
- 1: 2021-07-10 (土) 16:59:56 iseki
- 2: 2021-07-10 (土) 18:18:09 iseki
- 現: 2021-07-12 (月) 11:08:20 iseki