This is going to be long winded, but necessary to get my point across, so apologies in advance.
I installed and configured CentOS 5.5 as my new NIS (Not my decision) master server, no slaves yet. A couple of caveats follow:
1. I created the maps from the passwd, shadow and my automount auto.sw file.
2. The home directories are shared to "/sw/userid" coming from a remote server that runs Solaris 10
Okay, The server is running and to test I set up a client also running CentOS. Since I did not include root in the maps, it authenticates locally because i read that root in an nis map is generally a no-no... I did open it up so root can directly login in case any issues. So, if I try to login as myself I get the following error from my /var/log/secure log:
If I login as root and "su - myself" I can become myself and the automount creates my home directory with all my files there as expected.Apr 10 13:53:33 ftwnis01-new sshd[5688]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.10.10.10 user=myself
Apr 10 13:53:35 ftwnis01-new sshd[5688]: Failed password for myself from 10.10.10.10 port 42859 ssh2
It almost seems like it is trying to read the local shadow file where my id was taken out to use NIS maps. I'm attaching my nsswitch.conf :
--------------------------------------------------------------------------
--------------------------------------------------------------------------passwd: files nis
shadow: files nis
group: files nis
#hosts: db files nisplus nis dns
hosts: files nis dns
# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: files nis
publickey: nisplus
automount: files nis
aliases: files nisplus
sudoers: files ldap
Any help, hints or a vacation to Europe would be appreciated. I've been trying to fix this for over a week and my brain is fried.
Please let me know if I've left out pertinent information and I will get on the forum ASAP.
Thanks to everyone in advance,
Luvdablus