Sponsored Content
Full Discussion: NIS trouble
Top Forums UNIX for Advanced & Expert Users NIS trouble Post 11453 by wizard on Wednesday 5th of December 2001 03:17:47 PM
Old 12-05-2001
When I said re-init nisserver1, I just meant re-init the NIS environment on it. If you clear out the old maps in /var/yp/binding/DOMAIN_NAME (DOMAIN_NAME = Your NIS domain) directory on nisserver1 and run ypinit -s MASTER_SERVER_NAME where MASTER_SERVER_NAME is the name of the NIS master configured in the NIS maps. This will set the machine up as a new NIS slave server with a fresh copy of the maps from the NIS master. You have to remove the old binding dir before ypinit -s will run for a re-init.

If you don't want to re-init NIS on nisserver1, then depending on which version of UNIX you are running, it is possible to specify which NIS server to bind to. For instance, on Solaris you run ypinit -c and specify a search order the NIS servers for each client. This creates a ypservers file /var/yp/binding/DOMAIN_NAME where DOMAIN_NAME is the NIS domain name. You can edit this file to add/delete/modify NIS servers. If you remove the file completely, the ypbind daemon starts as a broadcast daemon by default.

This behaviour for NIS on most flavors of UNIX I've worked on. If for some reason the flavor of UNIX you are using doesn't support ypinit -c (SCO for instance), you must start ypbind with the -ypsetme flag and use ypset to manually assign an NIS server.

If you tell me what UNIX OS you're running, I can give you specific instructions if you need them.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Solaris NIS+ and RedHat NIS+

Hello all, I'm not sure if this is the right forum, but I would like to know if Redhat running NIS ( not NIS +) would have conflict with Solaris running NIS+. Currently I am running NIS+ on Solaris but will be adding RedHat to the network. I seem to be unable to find and information regarding... (2 Replies)
Discussion started by: larry
2 Replies

2. IP Networking

differences nis nis+

Hello together. Is there someone who is able to explain me the differences between NIS and NIS+. thanks in advance joerg (2 Replies)
Discussion started by: joerg
2 Replies

3. UNIX for Dummies Questions & Answers

NIS map mail.aliases specified, but NIS not running

Hi all, I just took over the admin role from someone and I wanna setup sendmail (just to send mail from the host) however, after I config all the resolv.conf, nssitch.conf, hosts file and when I try to send a mail out, after I punched ctl-D, it returned he following, "NIS map mail.aliases... (2 Replies)
Discussion started by: stancwong
2 Replies

4. UNIX for Advanced & Expert Users

SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working

We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave. We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation. However, no matter what i do, the SUSE machines will not talk to the NIS Servers. If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies

5. Solaris

nis

i want to dedicate my nis client system to some perticler group users. how can it possible on solaris. (0 Replies)
Discussion started by: nag.mi2000
0 Replies

6. Solaris

nis

hai any body send me the replay please. is it necessary to configure NFS , before configuring NIS on solaris9 or solaris10. (1 Reply)
Discussion started by: nag.mi2000
1 Replies

7. Solaris

How to configure a NIS client bound to the NIS server in another subnet?

Hi, all. I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client, 1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01 2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies

8. UNIX for Dummies Questions & Answers

Nis

Hello i have some account already defined on NIS server. I would like to use this account on my machine. What do i have to do ? Only create the home directory then use the account ?? If the user defined is using the korn shell, and i want to use bash, how can i change it ?? (2 Replies)
Discussion started by: dolphin06
2 Replies

9. Shell Programming and Scripting

Validating that the NIS and NIS+ services are disabled

I'm creating a scrip for auditing our AIX box's to ensure that they are built according to our system standards. I'm not sure on the logic for checking to see if the NIS and NIS+ services are disabled. any idea's? (2 Replies)
Discussion started by: sport
2 Replies

10. Solaris

nis

how to see the all nis user details and individual user details ? (0 Replies)
Discussion started by: tirupathi
0 Replies
ypwhich(1)						      General Commands Manual							ypwhich(1)

NAME
ypwhich - return name of NIS server or map master SYNOPSIS
ypwhich [ -d domain ] [ -Vn ] [ hostname ] ypwhich [ -d domain ] [ -t ] -m [ mname ] ypwhich -x DESCRIPTION
ypwhich returns the name of the NIS server that supplies the NIS services to a NIS client, or which is the master for a map. If invoked without arguments, it gives the NIS server for the local machine. If hostname is specified, that machine is queried to find out which NIS master it is using. OPTIONS
-d domain Specify a domain other than the default domain. -t This option inhibits map nickname translation. -m mname Find the master NIS server for a map. No hostname can be specified with the -m option. mname can be a mapname or nickname for a map. If mname is omitted, ypwhich will produce a list of available maps. -x Display the map nickname translation table. -Vn Version of ypbind(8), V2 is default. FILES
/var/yp/nicknames map nickname translation table. SEE ALSO
domainname(8), nicknames(5), ypbind(8), ypcat(1), ypmatch(1), yppoll(8), ypserv(8), ypset(8) AUTHOR
ypwhich is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@linux-nis.org>. YP Tools 2.12 April 2010 ypwhich(1)
All times are GMT -4. The time now is 01:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy