Slackware 15でNISサーバーを設定し、クライアントはUnixware 7です。
クライアントはサーバーを見ることができます
ypwhich -m passwd
slackware1.mydomain
地図は大丈夫です。
ypcat passwd.byname
milandra:***:1002:1002::/home/milandra:/bin/bash
IDが動作します
id -u milandra 1002
id -g milandra 1002
しかし..
id milandra
または
id -G milandra
閉じ込められて待っています。
nsswitch.confです。
passwd: files nis
shadow: files nis
group: files nis
hosts: files dns nis
networks: files nis
services: files nis
protocols: files nis
rpc: files nis
ethers: files nis
netmasks: files nis
netgroup: files nis
bootparams: files nis
automount: files nis
aliases: files nis
何が問題なのでしょうか?
tcpdump を使用して、ypserv が使用するポートの nis サーバーへの連続接続を表示します。
ypservでデバッグを有効にすると、次のような多くの行が返されます。
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
ypproc_first_2 from 192.168.201.2 port 34775
domainname = "mydomain.domain"
mapname = "group.byname"
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
connect from 192.168.201.2 port 34775 to procedure ypproc_first (mydomain.domain,group.byname;1)
ypdb_open("mydomain.domain", "group.byname")
Found: mydomain.domain/group.byname (0)
ypdb_close() called
-> Key = "milandra", Value = "milandra:!:1002:"
サーバーで/etc/group.nisを空白のままにするとIDは機能しますが、このエラーが発生します。
id milandra
uid=1002(milandra) gid=1002
UX:id: WARNING: groupid not found in group database