Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
|
|
03-26-2011, 03:10 AM
|
#1
|
Senior Member
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305
Rep:
|
Unable to change password at NIS clients
Hi All,
I have not got a chance to play with NIS enough except basic RHCE stuff.
I have some CENTOS 5.5 boxes on which I have set up NIS+AutoFS
All is working pretty well except NIS users can not change password at NIS clients.
I am getting this error.
Quote:
[vicky@box2 ~]$ passwd
Changing password for user vicky.
Changing password for vicky
(current) UNIX password:
New UNIX password:
BAD PASSWORD: it is too short
New UNIX password:
Retype new UNIX password:
NIS password could not be changed.
passwd: Failed preliminary check by password service
|
I have checked yppasswd service is running on both NIS Server and NIS Clients.
Code:
####### SERVER
[root@box1 yp]# service yppasswdd status
rpc.yppasswdd (pid 3835) is running...
####### CLIENT
[root@box2 ~]# service yppasswdd status
rpc.yppasswdd (pid 3756) is running...
I could not anything relevant (or fishy) in /var/log/secure
Any ideas what I am missing ?
Thanks in advance.
Last edited by vikas027; 04-05-2011 at 01:46 PM.
|
|
|
03-27-2011, 12:16 PM
|
#2
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339
|
Are you using the default /etc/passwd or put all in /etc/yp/passwd? I had to change PAM to add nisdir=/etc/yp in the password rules.
|
|
|
03-27-2011, 03:17 PM
|
#3
|
Senior Member
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305
Original Poster
Rep:
|
Quote:
Originally Posted by Reuti
Are you using the default /etc/passwd or put all in /etc/yp/passwd? I had to change PAM to add nisdir=/etc/yp in the password rules.
|
I am using /etc/passwd only.
Could you please throw some light on how to do this ? Thanks in advance.
|
|
|
03-28-2011, 08:54 AM
|
#4
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339
|
It was just to edit /etc/pam.d/common-password in openSUSE which contains:
Code:
password requisite pam_pwcheck.so nullok cracklib nisdir=/etc/yp
password required pam_unix2.so use_authtok nullok nisdir=/etc/yp
password required pam_make.so /var/yp
Do you have any entry in the messages/warn files: both, NIS-client and NIS-server?
I think it’s port 774 - do you run any firewall on the NIS-server (for me it’s inside the cluster, hence there is no firewall except on the client to the outside world).
|
|
|
04-05-2011, 01:23 PM
|
#5
|
Senior Member
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305
Original Poster
Rep:
|
Quote:
Originally Posted by Reuti
It was just to edit /etc/pam.d/common-password in openSUSE which contains:
Code:
password requisite pam_pwcheck.so nullok cracklib nisdir=/etc/yp
password required pam_unix2.so use_authtok nullok nisdir=/etc/yp
password required pam_make.so /var/yp
Do you have any entry in the messages/warn files: both, NIS-client and NIS-server?
I think it’s port 774 - do you run any firewall on the NIS-server (for me it’s inside the cluster, hence there is no firewall except on the client to the outside world).
|
Hi Reuti,
Thanks for the response and apologies for the delay.
Neither I have file "/etc/pam.d/common-password" in my CentOS 5.5 box, nor I have this directory - "/etc/yp"
|
|
|
All times are GMT -5. The time now is 02:58 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
|
|