NIS trouble

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users NIS trouble
# 8  
Old 12-05-2001
i can't re-init totally the nisserver1.
now i try to bypass the problem...before resolv it, it is very importante for my server'client
i want my server take a other nis server....
but, do you know a command to know if the nis slave is forced or if client's server bind my nisserver1 by broadcast ???

# 9  
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  
Old 12-06-2001
i have already understood that the re-init is just for NIS Smilie

my NISserver is in linux debian 2.2.10
my master is in SunOS 5.5 and my client in HPux 11.00

i ever try to re-init the map group.bygid with the ypxfr command, it doesn't work anymore...

but, now i need to find a quickfix for this problem and i try my client bound a other nisserver which is in the same subnet and in the same VLAN...but my client do want to bind the other niserver, that's why i ask this question.
i finally find the solution; in HPux, the /etc/rc.config.d/namesvrs file contains informations on the different variables.

when i try a ypinit -s MASTER_NIS_SERVER
the nis slave responds :
"can't enumerate maps from MASTER_SERVER. Please check that it is running"

i used to know the NIS world, but now i discover the dark side of the NIS... Smilie Smilie

thx for your patience
# 11  
Old 12-10-2001
thx wizard, i build an other nisserver on the good VLAN, and my client server bound it...

now, i think i perhaps re-init the nisserver1 like you advise me

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris


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

2. 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

3. UNIX for Dummies Questions & Answers


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

4. 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

5. Solaris


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

6. Solaris


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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question