NIS trouble


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users NIS trouble
# 1  
Old 11-27-2001
Network NIS trouble

Smilie hi all,

I have a NIS trouble on a server.
when I create a file on a server (server1), the group of this file is the number of the group and not its name.
when I create a file with this group on another server which depends of another NIS slave, the file is created with the group name.
when I create a new group in the group map on the master, on this server ( server1 ), the new group name is not recognize.
I modified the group map by creating a new group, I did a make and I forced the synchronization of the map on the slave with :

# ypxfr -h masterNIS -d domain_name group.bygid

the answer was the master version is not newer

I think it's a synchronisation pb with the group.bygid map...

need your help.... Smilie

thx
# 2  
Old 11-27-2001
The first step is to ypcat the NIS group file on all machines and make sure the NIS group file is seen everywhere. If it isn't, make sure ypbind is running and that each machine is bound to an NIS server using ypwhich. As for the ypxfer, assuming you haven't mucked around with the Makefile in /var/yp, the timestamps on the group source and the dbm group maps (i.e. group.bygid, etc.) determines if the map is pushed out or not. Try using the touch command to update the timestamp on the group source file and then use make in /var/yp to push it out. If it still doesn't push, please give the exact error message here and we will try to figure it out.
# 3  
Old 11-28-2001
Thx for your reply

I modified passwd and group maps on NIS master and did a make which ended with no error. Replication is ok on all slaves, except on slave server1 where .byuid and .bygid are not updated. But ypcat on server1 gives all correct informations from the map.byname, i supposed...
# 4  
Old 11-28-2001
Data oups...

sorry, the nis slave is not server1, server1 is the server which depend of the slave which has error...
# 5  
Old 11-28-2001
Okay, I'm a little confused now. You have an NIS master and an NIS slave. Host server1 is an NIS client bound to the NIS slave?
If this is correct, I think you said that ypcat group on server1 shows the correct data. Is this true? If it is, what makes you think the group map is not getting updated. On which machine is ypcat failing to show the correct info?
# 6  
Old 11-29-2001
hi, thx for your patience...

>>Okay, I'm a little confused now
*sorry, sorry for my bad english... Smilie

>>You have an NIS master and an NIS slave. Host server1 is an NIS client bound to the NIS slave?
*yes, server1 is bind to nisslave1( and every other slaves work fine )

>>I think you said that ypcat group on server1 shows the correct data. Is this true?
*yes, it is surprising, but i think correct data come from passwd.byname or group.byname, i think i have a synchronisation Pb with group.bygid and passwd.byuid.

>>what makes you think the group map is not getting updated. On which machine is ypcat failing to show the correct info?
* i have a user1 in group1(GID=100) (this group exists for a long time)
i have a user2 in group2(GID=200) (this group is a newly created group)

on the server1
when i create a file with user1, the file owner is user1 group1
when i create a file with user2, the file owner is user2 200

on a server2 which binds to an other nis slave ( nisslave2) the owner is
user1 group 1 & user2 group2
and on nisslave2 the synchronisation is ok...

that's why i think it could be a nis probleme.Smilie
# 7  
Old 11-29-2001
It does indeed look like some type of sync problem with group.bygid. It looks like the UID is getting translated by the map. Only the GID is the problem. The file is probably corrupted. To make sure everything is clean, I would re-intialize nisslave1 as a yp slave. You could probably just get rid of the group.bygid file, touch group on the master, and push the maps out. But a total re-init would give you a completely clean slave.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

nis

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

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

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

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

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

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