Adding NIS users
Hi everyone,
I need some assistance adding a user to my NIS domain.
I configured NIS on the server as a master server and as a client. I also started ypserv, ypbind, and yppasswdd.
I made a copy of /etc/passwd, /etc/group and /etc/shadow and placed them in /var/yp/ypfiles/
I also removed the root user from the copied file because I am using different root passwords on all my clients and don't want them to be the same (ie. managed by NIS).
Everything seems to have started ok. But I am not sure how add a user! I did a typical "useradd", and that made an entry in /etc/passwd but not in /var/yp/ypfiles/passwd. I would expect then that when I execute "make -C /var/yp" to update the NIS maps the new user won't be present.
I think copying the appropriate lines from /etc/* to /var/yp/ypfiles/* would do the trick, but that doesn't sound like it's the best way to do it.
Can anyone help please?
Thanks.
|