Operating System - HP-UX
1753375 Members
5268 Online
108792 Solutions
New Discussion юеВ

Re: How to disable / enable NIS Client

 
SOLVED
Go to solution
praveen..
Super Advisor

How to disable / enable NIS Client

Hi,
Now users are accessing all the servers using their NIS id.

Now I need to disable NIS on two servers for 1 week.

How can i disable the NIS so that no user can access this server?

After one week, I need to enable it also.

Please suggest

OS: HP-UX 11iv2
and Solaris 10 (If anybody can help for solaris also)

Thanks
2 REPLIES 2
Jeff_Traigle
Honored Contributor
Solution

Re: How to disable / enable NIS Client

To stop the NIS client:

/sbin/init.d/nis.client stop

If you want to be sure it doesn't start on a reboot, run:

ch_rc -a -p NIS_CLIENT=0 /etc/rc.config.d/namesvrs

When you're ready to enable it again:

ch_rc -a -p NIS_CLIENT=1 /etc/rc.config.d/namesvrs
/sbin/init.d/nis.client start
--
Jeff Traigle
praveen..
Super Advisor

Re: How to disable / enable NIS Client

Thanks,
It works for the HP-ux.


and for the solaris part, I need to use the below commands:

# svcadm disable network/nis/client

# svcadm enable network/nis/client


Thanks