LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   NIS server:- how to set user must change his passwd on first login form client (https://www.linuxquestions.org/questions/linux-server-73/nis-server-how-to-set-user-must-change-his-passwd-on-first-login-form-client-901180/)

anujkaushal 09-05-2011 02:43 AM

NIS server:- how to set user must change his passwd on first login form client
 
# i have configure NIS serveron RHEL 5.5
# it is runing good but when i set a user to change his passwd on first login it did not work
what i do is
[root@localhost ~]# chage -d 0 user1

It is working fine when login through server side but when login through client side it is not working.The system is not prompting for password change

What is the solution.

vortmax 09-05-2011 08:04 PM

do you map shadow over NIS?

anujkaushal 09-05-2011 11:11 PM

i haven't map the shadow nor i know completly about it.
I can change the password and implement them for all users over nis network. But i can not recommend the usres to change their password at first login.
I found i have not "rc.conf" file in my "/etc" directory. Is it is a problem
I need help about it and the solution

vortmax 09-05-2011 11:55 PM

i did some experimenting and some digging.

The official word from the unix masters is NIS does not support password expiration. There is some talk that NIS+ does, but I have zero experience with that.

The best solution I found was a cron job perl script running on the NIS master that scans the shadow file, calculates when the password will expire, shoots an email to users a few days in advance and then disables the account if the password expires.

anujkaushal 09-07-2011 01:11 AM

Ok. so we can't do it.
But your second option is also a solution.. but key hole remain the same.
Thanks


All times are GMT -5. The time now is 02:12 PM.