Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-08-2013, 01:48 PM
|
#1
|
LQ Newbie
Registered: Feb 2013
Posts: 6
Rep: 
|
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 01:49 PM.
|
|
|
02-08-2013, 05:47 PM
|
#2
|
Member
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
|
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)?
|
|
|
02-09-2013, 12:21 AM
|
#3
|
LQ Newbie
Registered: Feb 2013
Posts: 6
Original Poster
Rep: 
|
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
|
|
|
02-09-2013, 02:13 AM
|
#4
|
Member
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
|
Is pwck ok on the master? Can tstnis change his password on the client?
|
|
|
02-11-2013, 12:42 AM
|
#5
|
LQ Newbie
Registered: Feb 2013
Posts: 6
Original Poster
Rep: 
|
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
|
|
|
02-19-2013, 04:21 AM
|
#6
|
LQ Newbie
Registered: Feb 2013
Posts: 6
Original Poster
Rep: 
|
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.
|
|
|
02-19-2013, 06:48 AM
|
#7
|
Member
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
|
What does the client say to "rpcinfo -p web.chinni.com" ?
|
|
|
02-19-2013, 07:07 AM
|
#8
|
LQ Newbie
Registered: Feb 2013
Posts: 6
Original Poster
Rep: 
|
[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
|
|
|
02-19-2013, 08:00 AM
|
#9
|
Member
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
|
Is there any firewalling involved? I'd suggest "strace yppasswd username" and "tcpdump" as the next steps.
|
|
|
02-20-2013, 03:24 AM
|
#10
|
LQ Newbie
Registered: Feb 2013
Posts: 6
Original Poster
Rep: 
|
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
|
|
|
02-20-2013, 04:02 AM
|
#11
|
Member
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
|
yum install strace
|
|
|
All times are GMT -5. The time now is 03:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|