LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-08-2013, 02:48 PM   #1
LNPB
LQ Newbie
 
Registered: Feb 2013
Posts: 6

Rep: Reputation: Disabled
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.

Last edited by LNPB; 02-08-2013 at 02:49 PM.
 
Old 02-08-2013, 06:47 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 870
Blog Entries: 2

Rep: Reputation: 219Reputation: 219Reputation: 219
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)?
 
Old 02-09-2013, 01:21 AM   #3
LNPB
LQ Newbie
 
Registered: Feb 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-09-2013, 03:13 AM   #4
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 870
Blog Entries: 2

Rep: Reputation: 219Reputation: 219Reputation: 219
Is pwck ok on the master? Can tstnis change his password on the client?
 
Old 02-11-2013, 01:42 AM   #5
LNPB
LQ Newbie
 
Registered: Feb 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-19-2013, 05:21 AM   #6
LNPB
LQ Newbie
 
Registered: Feb 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-19-2013, 07:48 AM   #7
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 870
Blog Entries: 2

Rep: Reputation: 219Reputation: 219Reputation: 219
What does the client say to "rpcinfo -p web.chinni.com" ?
 
Old 02-19-2013, 08:07 AM   #8
LNPB
LQ Newbie
 
Registered: Feb 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
[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
 
Old 02-19-2013, 09:00 AM   #9
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 870
Blog Entries: 2

Rep: Reputation: 219Reputation: 219Reputation: 219
Is there any firewalling involved? I'd suggest "strace yppasswd username" and "tcpdump" as the next steps.
 
Old 02-20-2013, 04:24 AM   #10
LNPB
LQ Newbie
 
Registered: Feb 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-20-2013, 05:02 AM   #11
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 870
Blog Entries: 2

Rep: Reputation: 219Reputation: 219Reputation: 219
yum install strace
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu/AD/KRB5/LDAP/NIS able to use domain user login with putty, unable in gui login Nitroglycerine Linux - Server 0 06-28-2012 05:17 AM
[SOLVED] User cannot login to NIS-client KaMe Linux - Server 17 06-11-2012 08:08 AM
unable to login as NIS user sunilvadranapu Suse/Novell 1 12-09-2009 04:55 AM
Unable to login to NIS client machine(Ubuntu) using NIS login user name crazymoonboy Linux - Server 7 11-27-2009 03:29 AM
NIS prob: added user to server, but can't login to client BrianK Linux - General 3 10-06-2004 05:29 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration