New user + NIS server: login fails on other servers
by kaza from LinuxQuestions.org on (#5RWM1)
Hello!
I'm attempting to add a new user name at work. We have a NIS server administering host names
and users. I've run "adduser <new_user_name>", run "passwd" to set its initial password,
copied the added lines from /etc/passwd (on the NIS server) to the input files at /var/yp/etc
(and checked that the Makefile really uses the directory "/var/yp/etc" as input), run "make passwd"
in the "/var/yp" directory, stopped and restarted the "ypserv", also stopped and restarted
"ypbind" on another server. I also removed the new user lines from the /etc/passwd and /etc/shadow
files on the NIS server.
When I run "su <new_user_name>" on the NIS server, I can login OK and "whoami"
shows <new_user_name>. However, on other servers, even if I see the new user line in the
output of "ypcat passwd", an attempt to "su <new_user_name>" results in password not being
recognized.
the "passwd" lines in the /etc/nsswitch file (of the other, non NIS server) are:
Code:passwd: files nis sss
shadow: files nis sss
group: files nis sss
What am I doing wrong?
TIA!
I'm attempting to add a new user name at work. We have a NIS server administering host names
and users. I've run "adduser <new_user_name>", run "passwd" to set its initial password,
copied the added lines from /etc/passwd (on the NIS server) to the input files at /var/yp/etc
(and checked that the Makefile really uses the directory "/var/yp/etc" as input), run "make passwd"
in the "/var/yp" directory, stopped and restarted the "ypserv", also stopped and restarted
"ypbind" on another server. I also removed the new user lines from the /etc/passwd and /etc/shadow
files on the NIS server.
When I run "su <new_user_name>" on the NIS server, I can login OK and "whoami"
shows <new_user_name>. However, on other servers, even if I see the new user line in the
output of "ypcat passwd", an attempt to "su <new_user_name>" results in password not being
recognized.
the "passwd" lines in the /etc/nsswitch file (of the other, non NIS server) are:
Code:passwd: files nis sss
shadow: files nis sss
group: files nis sss
What am I doing wrong?
TIA!