[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PAM/NIS problem: can't login in with NIS users



Jean Christophe ANDRÉ wrote:
	Hi,

Le jeudi 26 février 2004 à 16h34 (+0100), Christoph Pohl écrivait :

Now 'ypdomainname' returns the correct domain and 'ypcat passwd' shows our password db, but i still can't log in as one of those NIS users, neither local, nor remote (SSH).


Check "getent passwd" too, since it is the libc call used to find users.
May be you just forgot to put "nis" in /etc/nsswitch.conf?


'getent passwd' returns a complete mixture of local and domain accounts. I tried 2 configurations for /etc/nsswitch.conf, which both don't work:

1) (which actually works well on another box!)
# /etc/nsswitch.conf
passwd:         compat
group:          compat
shadow:         compat
hosts:          files dns nis
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis

2) (taken from suggestions on NIS-related sites)
# /etc/nsswitch.conf
passwd:         compat
group:          compat
shadow:         compat
passwd_compat: nis
group_compat: nis
shadow_compat: nis
hosts:          files nis dns
services:   nis [NOTFOUND=return] db files
networks:   nis [NOTFOUND=return] files
protocols:  nis [NOTFOUND=return] db files
rpc:        nis [NOTFOUND=return] db files
ethers:     nis [NOTFOUND=return] db files
netmasks:   nis [NOTFOUND=return] files
netgroup:   nis
bootparams: nis [NOTFOUND=return] files
publickey:  nis [NOTFOUND=return] files
automount:  files
aliases:    nis [NOTFOUND=return] files



Reply to: