LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-26-2011, 03:10 AM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,275

Rep: Reputation: 99
Question 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.
 
Old 03-27-2011, 12:16 PM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,320

Rep: Reputation: 252Reputation: 252Reputation: 252
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.
 
Old 03-27-2011, 03:17 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,275

Original Poster
Rep: Reputation: 99
Thumbs up

Quote:
Originally Posted by Reuti View Post
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.
 
Old 03-28-2011, 08:54 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,320

Rep: Reputation: 252Reputation: 252Reputation: 252
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).
 
Old 04-05-2011, 01:23 PM   #5
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,275

Original Poster
Rep: Reputation: 99
Quote:
Originally Posted by Reuti View Post
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"
 
  


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
How to force a user to change their NIS password at logon? synthol6 AIX 1 08-17-2010 09:47 PM
password history not working with NIS clients VMSlives Linux - Security 0 04-15-2009 04:32 PM
NIS vs Local account password change thllgo Linux - Server 2 07-17-2008 05:47 PM
NIS password change problem wahid111 Slackware 3 08-12-2006 03:12 AM
Can't change NIS Password lemay_jeff Linux - Networking 1 06-29-2004 03:48 PM


All times are GMT -5. The time now is 11:33 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