Slackware 15에서 NIS 서버를 구성했고 클라이언트는 Unixware 7입니다.
클라이언트는 서버를 볼 수 있습니다
ypwhich -m passwd
slackware1.mydomain
지도는 괜찮아요
ypcat passwd.byname
milandra:***:1002:1002::/home/milandra:/bin/bash
신분증이 작동합니다
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