Hello!
Thanks at:
Jon Buchanan, RUBEN OCONNER, Rafael Hernandez Rios, Herve DEMARTHE and
Spider Boardman
The best solution for my problem is of Jon Buchanan:
>One way to force new users to change their password is to give them a
>first-time login script which overwrites itself. Eg, .profile for sh or
>ksh users:
># First-time login script for new users to force password change
># Logout if interrupted
>trap exit 2 3
># Change password - logout if unsuccessful
># NB: replace passwd with yppasswd if NIS is in use
>passwd || exit
># Copy new .profile into place
>cp -p /usr/templates/.profile .
># Run new profile
>. .profile
>trap 2 3
>
Is the best when you haven't C2 level.
Thanks at all.
______________________________________________________________________-
Antonia Gomez Gonzalez
LCFIB - UPC
E-mail: antonia_at_fib.upc.es
______________________________________________________________________-
Received on Fri Mar 08 1996 - 17:44:31 NZDT