LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Networking (http://www.linuxquestions.org/questions/forumdisplay.php?f=3)
-   -   unable to login with nis user in client system (http://www.linuxquestions.org/questions/showthread.php?t=4175449206)

LNPB 02-08-2013 01:48 PM

unable to login with nis user in client system
 
i have configured NIS server and created some users in it. Then i updated all using make command and restarted ypserv and yppasswdd.
Also configured nfs services.
And stopped iptables

But in client machine i was unable to login with nis user. After mounting server's home directory, i am getting the below list in client's home dir..

drwx------ 15 bln bln 4096 Feb 4 19:02 admin
drwx------ 2 root root 16384 Feb 1 20:25 lost+found
drwx------ 3 502 502 4096 Feb 8 22:45 t1
drwx------ 3 503 503 4096 Feb 8 22:54 t2
drwx------ 3 504 504 4096 Feb 8 22:56 t3
drwx------ 3 505 505 4096 Feb 8 22:57 t4
drwx------ 15 501 501 4096 Feb 8 18:42 tstnis

Can anybody help me in this how to resolve the issue.

linosaurusroot 02-08-2013 05:47 PM

What's /etc/nsswitch.conf on the client? Is the client running ypbind? Do the NIS domains match? Are they on the same network (within broadcast range)?

LNPB 02-09-2013 12:21 AM

unable to login as nis user in client system
 
Ya, everything is perfect, its in the same network, it matches nisdomain name, ypwhich also good and there is no issue with mount too.
plz observe one thing here,when listing the mounted home dir in client.

drwx------ 15 bln bln 4096 Feb 4 19:02 admin
drwx------ 2 root root 16384 Feb 1 20:25 lost+found
drwx------ 3 502 502 4096 Feb 8 22:45 t1
drwx------ 3 503 503 4096 Feb 8 22:54 t2
drwx------ 3 504 504 4096 Feb 8 22:56 t3
drwx------ 3 505 505 4096 Feb 8 22:57 t4
drwx------ 15 tstnis tstnis 4096 Feb 8 18:42 tstnis

In the above listing the OWNER & GROUP columns of some Users are displaying their uid & gid instead of names, i was unable to login those users only, but in the last line of the above listing, for the User "tstnis" it is showing name in the OWNER & GROUP column,i have no problem for this user to login in all clients..

And when i tried ypcat passwd in the client system, it is showing only the "tstnis" user.

thank u

linosaurusroot 02-09-2013 02:13 AM

Is pwck ok on the master? Can tstnis change his password on the client?

LNPB 02-11-2013 12:42 AM

Hey, i solved the issue by reinstalling nis server, now on clinet the list of mounted home dir is as below

drwx------ 15 admin admin 4096 Feb 4 19:02 admin
drwx------ 3 f1 f1 4096 Feb 11 11:07 f1
drwx------ 3 l1 l1 4096 Feb 9 00:21 l1
drwx------ 2 root root 16384 Feb 1 20:25 lost+found
drwx------ 15 t1 t1 4096 Feb 11 11:54 t1
drwx------ 3 t2 t2 4096 Feb 8 22:54 t2
drwx------ 3 t3 t3 4096 Feb 8 22:56 t3
drwx------ 3 t4 t4 4096 Feb 8 22:57 t4
drwx------ 15 tstnis tstnis 4096 Feb 8 18:42 tstnis

See, here the OWNER & GROUP columns are changed to names (instead of IDs), so the problem got resolved.
But still i have a doubt. why the USER is unable to login with the UIDs that are exactly matching with the created ones?

And ya when tring to change the password in client i am getting the following error

Logged in with Root user in Client:-

[root@client ~]# passwd t1
Changing password for user t1.
New UNIX password:
Retype new UNIX password:
passwd: Failed preliminary check by password service
[root@client ~]#

Logged in with t1 user in Client:-

[t1@client ~]$ passwd
Changing password for user t1.
Changing password for t1
(current) UNIX password:
New UNIX password:
Retype new UNIX password:
passwd: Failed preliminary check by password service
[t1@client ~]$

Please tell me how to resolve this error

LNPB 02-19-2013 04:21 AM

i was unable to change nis user passwords on client. if tried with just passwd im getting error "passwd: Failed preliminary check by password service", when tried to change the password using yppasswd username "yppasswd: yppasswdd not running on NIS master host ("web.chinni.com").", but yppasswdd is running on server.

Plz help me the complete procedure of Users Password change on client machines.

linosaurusroot 02-19-2013 06:48 AM

What does the client say to "rpcinfo -p web.chinni.com" ?

LNPB 02-19-2013 07:07 AM

[root@slv ~]# rpcinfo -p www.chinni.com
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100004 2 udp 945 ypserv
100004 1 udp 945 ypserv
100004 2 tcp 948 ypserv
100004 1 tcp 948 ypserv
100009 1 udp 966 yppasswdd
100007 2 udp 641 ypbind
100007 1 udp 641 ypbind
100007 2 tcp 646 ypbind
100007 1 tcp 646 ypbind

linosaurusroot 02-19-2013 08:00 AM

Is there any firewalling involved? I'd suggest "strace yppasswd username" and "tcpdump" as the next steps.

LNPB 02-20-2013 03:24 AM

No Firewall is involved, i have stopped the iptables services then only im was connected to nis server. The strace command is not working in my Cent OS 5. Im getting this err bash: strace: command not found

linosaurusroot 02-20-2013 04:02 AM

yum install strace


All times are GMT -5. The time now is 12:07 AM.