NIS login discrepancy


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers NIS login discrepancy
# 8  
Old 03-31-2003
When you make changes to /etc/passwd on any platform, you have to map the NIS files again, usually by running a MAKE command. I know in Linux, you can use "make -C /var/yp".

If nothing else, you could just use /usr/lib/yp/ypinit -m to remap the master(or the equivalent directory) and /usr/lib/yp/ypinit -s MASTER SERVER on the slave server to synch it up with the master. Of course, I have always heard that that was not recommended.

You also might have needed to restart ypbind/ypserv.
# 9  
Old 04-01-2003
Henrik,
Is your NIS server on the same system you were testing with?
TioTony
# 10  
Old 04-01-2003
Thanks for the 2 replys lads.

The nis server (master) is machine 1, the sun client is machine 2, and the hpux client is machine 3. The password file having the entries made to it is on machine 2 so it is the local password files on the client and the clients nsswitch.conf file which is being altered. As there are no changes being made to the master ( i.e. all nis accounts remain unchanged) I don't believe any changes need to be made to remake the nis maps. It is just the clients ability to have access to the name service switch ( and subsequantly the maps) which is being tested.
# 11  
Old 04-01-2003
I think I might know what is happening. After you make changes you should stop/restart the ypbind process on the client machine. If you change /etc/passwd, /etc/group, /etc/nsswitch.conf without stopping and restarting ypbind still has the info in it's memory to get the NIS map info. I ran into this today at work when I was removing a Sun system from NIS. After changing all the files, ypcat passwd still worked. Once I stopped/started ypbind again I could not longer ypcat.
# 12  
Old 04-08-2003
Thanks for the tip Tony but it didn't work. I even went to the point of deleting the nsswitch.conf file and rebooting (which should both kill the ypbind daemon and remove any system state info) and I was still able to access nis acounts on the restart. I think I will send this to sun to see what they come up with
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Ssh not allowing NIS user to login

As I do a ssh <nis_user>@server1 from server2, ssh prompts for certificates (as expected the first time), then it prompts for the users password, as soon as I enter the password, I get a Connection to server1 closed by remote host, and connection to server1 closed. and I disconnect back to the... (3 Replies)
Discussion started by: mrmurdock
3 Replies

2. OS X (Apple)

RAM Usage discrepancy

Hey there! I'm a new user here who registered because I couldn't get these kind of questions answered in the place I directly com from. :o I've found a discrepancy in total RAM used and I can't figure out why it is. My only guess is there are some RAM used by some stuff impossible to identify,... (2 Replies)
Discussion started by: dasx
2 Replies

3. AIX

AIX: Could not login using NIS Account?

Hi there, I am new to AIX environment, when I set up NIS Client for an AIX 5.3 Machine to connect to a Linux NIS Master, everything seems to be okie: /etc/passwd: +::0:0::: /etc/group: +: ps -ef | egrep "ypbind": /usr/lib/netsvc/yp/ypbind -ypsetme -ypsetme I can get all account... (0 Replies)
Discussion started by: quanba
0 Replies

4. Solaris

NIS - Change Password @ first login.

Hi Any body knows how to prompt user to change password on first login in a Solaris NIS client. Thanks HG (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

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

6. Solaris

Incorrect login NIS?

Hello, I have an issue with a NIS client station on my network. I can't log onto with any NIS login and it prompt "Login incorrectl please try again". My others stations work correctly and log on without problem. This station worked correctly before yesterday, but yesterday we've got a power... (5 Replies)
Discussion started by: Juterassee
5 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 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

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

10. UNIX for Advanced & Expert Users

NIS users cann't login on AIX and HP

Hey, I've set up a NIS domain with linux as master-server, slave server and clients ... and Linux works fine. To that NIS domain I tried to add a HPUX 11.00 and an AIX 4.3.3 system (till now - there should be more clients in final version). And both systems now have to same problem: I can... (3 Replies)
Discussion started by: mod
3 Replies
Login or Register to Ask a Question