[SunHELP] NIS

Magnus Abrante sunhelp at sunhelp.org
Thu Jan 11 04:03:02 CST 2001


On Mon, Jan 08, 2001 at 12:24:05PM -0800, Heshmati, Sardar wrote:
> Just edit /var/yp/Makefile and change the following variable...
> 
> PWDIR =/nis
> 
> -----Original Message-----
> From: jgarza at ticnet.com [mailto:jgarza at ticnet.com]
> Sent: Monday, January 08, 2001 8:25 AM
> To: sunhelp at sunhelp.org
> Subject: [SunHELP] NIS
> 
> 
> 
> I want to redirect the passwd and shadow file on Solaris 2.6 while adding,
> removing, and modify users in an NIS environment. 
> Is there a process of doing this?
> example. /etc/passwd to point to /nis/passwd
> Were are try to secure the root password from pushing down in the NIS maps.
> Where are the files or scripts that we can modify located?

Actually, if you only want to stop the root account from appearing in the
NIS maps you can edit /var/yp/Makefile. I did this very simply once, i just
did a @grep -v "root:" $(PWDIR)/passwd > $(some_new_file) and then 
used the $(some_new_file) to make the passwd map from. Then repeated the 
same thing for shadow. 

Regards,

	//Magnus Abrante
/* This is my opinion and not the one of my empolyer */




More information about the SunHELP mailing list