LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-12-2010, 02:19 PM   #1
luvshines
Member
 
Registered: Apr 2009
Posts: 74

Rep: Reputation: 16
Question NIS with nscd on, username and password caching issue


I configured my system against an NIS server and since I wanted to chroot while using scp service, I had to use nscd else it gave errors while resolving users. But now I am stuck at another issue.
The nscd cache refuses to reckon the password changes of NIS users. Once ypbind binds to a servers, no matter how many time i change the password, my system still identifies only the earlier password.
To add to the agony, even if the NIS server becomes unavailable, the nscd cache authenticates the users.
Though service nscd reload, clears the cache. But how should I make sure the cache is cleared each time the password is changes either by ypasswd command on the client or the server ??
 
Old 01-16-2010, 07:05 AM   #2
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
why cache passwords in the first place?

maybe you could disable it from nscd.conf or set a timer to clear the cache every x mins.

please check the man page for nscd.conf
 
Old 02-25-2010, 11:41 AM   #3
luvshines
Member
 
Registered: Apr 2009
Posts: 74

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by geek.ksa View Post
why cache passwords in the first place?

maybe you could disable it from nscd.conf or set a timer to clear the cache every x mins.

please check the man page for nscd.conf
NIS client requires nscd to be on for better perfomance.

Anyways, I found :
service nscd reload (not restart)
clear the nscd cache (most of the time, :P)
 
Old 02-28-2010, 11:31 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Adjust the nscd configuration. Remove the cache for password, and tune down the time limit on everything else to suit your needs.
 
  


Reply



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
username/password lockout issue dungeonrock Red Hat 9 03-06-2006 02:04 PM
NIS Caching? aznluvsmc Linux - Networking 0 02-12-2005 03:49 PM
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 12:28 AM
nis client machine can't log in using nis username preetam Linux - Networking 0 02-09-2004 04:40 PM
No username and password Tec1 Linux - Software 1 08-10-2003 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:10 AM.

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
Open Source Consulting | Domain Registration