password aging under NIS

Good morning,

As NIS don齮 support password aging and i can齮 upgrade my systems to NIS+, i齧 looking for a way to implement password aging under NIS.

I齰e wrote two csh scripts to control the age of user齭 password in this way:

-The first script is called from the ?login?of user when he logs into the system, this script use a NFS shared file called 齯sers_nis?where I record all login name of users plus last julian day he changed his password. So, when the user log into the system, this script look into the 齯sers_nis?file for the record of the user who is logging in and read last day he changed his password, so if he have exceed 30 days from his last password change, he is forced to change his password executing the passwd command from the script. Due to security reasons, the ?login?have 444 permissions and own to root:other and the csh script own to root:other with 555 and is SUID.

-The second script is programmed in cron (in the server) an look all days for users who have exceed 30 days from his last password change into the 齯sers_nis?file, to this type of users, the system send an SMS advertising them to change his password and after one week if these users continue without change his password they are locked.

The problem is that my process work only works under a 齨on?x-window session, because if the password of user have expired, the script called from the ?login?execute automatically the passwd command which is NOT presented to the user during the CDE start (there齭 not interaction with user) so user can齮 change his password and CDE.

So the questions are:

-How can I interact with user from the ?login?script during a X-window session start?

-Is there any other way to implement password aging under NIS?.

Regard and thank for your time,

Jesus

[1841 byte] By [j-m] at [2007-11-25 23:23:46]
# 1

yeah.. I still don't get this.. Sun implemented password aging attributes and code for the local files, NIS+, and LDAP databases, but for some reason never managed to do so for NIS.. WTF? I've witnessed code abandonment to force user migration, but come on.. this can't be more than copy and paste of the local files code.. it's too bad too, because NIS is the classic KISS solution for small networks.. if they had put even a fraction of the effort they put into updating NFS into updating NIS, it could have been a much more secure, functional product.. imagine NIS/NFS (RPC) over SSL.. <sigh>

skrowley at 2007-7-5 18:10:56 > top of Java-index,General,Talk to the Sysop...
# 2

> on.. this can't be more than copy and paste of the

> local files code.. it's too bad too, because NIS is

you can still do that yourself nowadays, opensolaris.org

> the classic KISS solution for small networks..

that's why it had to go :)

It's been no secret that LDAP is the future, NIS (+) the past.

alan

alanpae at 2007-7-5 18:10:56 > top of Java-index,General,Talk to the Sysop...
# 3
If you are looking for something to use in a GUI, try tcl/tk. Take a look.... http://www.tcl.tk/
NoWin4Me at 2007-7-5 18:10:56 > top of Java-index,General,Talk to the Sysop...