Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

removing NIS and NFS client

Status
Not open for further replies.

stevenriz

IS-IT--Management
May 21, 2001
1,069
I would like to remove a machine from using the NIS master for user info etc. Also would like to stop mounting NFS drives (I think I know how to do that). I am just interested in stopping NIS services on a particular machine. What steps should I take?
Steve
 
To stop NIS services go to:

/var/yp/binding

rm `domainname`

This will break you NIS client from speaking to the master of your domain.

To stop nfs mounting you'll need to edit /etc/vfstab and find out what is getting mounted at boot time. I would recommend commenting the suspect entries out first before removing them just in case you get rid of the wrong ones. If this particular machine is sharing file mount then go to /etc/dfs/dfstab and remove the particular entries there.

HTH
-bp
 
yes I did all this but I renamed the 'domain' instead of removing it. Should it be gone alltogether?
steve
 
Check /etc/nsswitch.conf and make sure the machine won't be trying to access infomation for hosts etc using nis.
 
NFS mounting of user home directories in /home/username is commonly configured with NIS. Check for an /etc/auto_home file and a reference to it in /etc/auto_master.

To disable it comment out the entry in /etc/auto_master and type automount -v.

Annihilannic.
 
I found this and disabled it Annihilannic. mikeclark, the nsswitch.conf doesn't seem to reference nis anymore, here it is. Down further is the program not registered message I get during shutdown...

# more nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files dns
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
==========================

THIS IS WHAT I GET WHEN I SHUTDOWN
# shutdown -y -g0 -i6

Shutdown started. Mon Apr 14 09:22:30 EDT 2003

Broadcast Message from root (pts/0) on mouse Mon Apr 14 09:22:30...
THE SYSTEM IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged

showmount: mouse: RPC: Program not registered
Changing to init state 6 - please wait
#
#

Connection to host lost.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top