1833389 Members
3055 Online
110052 Solutions
New Discussion

useradd on NIS

 
joe_91
Super Advisor

useradd on NIS

Team:

We are developing some scripts for useradd/usermod on NIS environment. Could you please give me direction how to use these commands in NIS. I thought these commands only work on /etc/passwd. We want to use it on /etc/passwd.nis

Thanks

Joe
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: useradd on NIS

I believe if you do the useradd on the master NIS server and then yppush the update will happen and be available on all NIS slave machines.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rick Garland
Honored Contributor

Re: useradd on NIS

Since you are using a passwd.nis file, does the NIS master know about this file? If so then useradd will work. Also, does the yppush (ypmake) know about the passwd.nis file. If not then the passwd.nis file will not get propagated to the NIS slave servers.
joe_91
Super Advisor

Re: useradd on NIS

So looks like it all depends on how your Makefile is set up (var/yp/Makefile)?

Thanks

Joe
Rick Garland
Honored Contributor

Re: useradd on NIS

It can - yes.