From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076330121233.tru64-unix-managers.marc@archive.invalid> From: Antonia Gomez Date: Fri, 08 Mar 1996 17:03:48 +0000 To: tru64-unix-managers Subject: SUMMARY: Change to passwd X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076330121233 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@fib.upc.es ______________________________________________________________________-