From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97480188824998.tru64-unix-managers.marc@archive.invalid> From: "J.A. Gutierrez" Date: Tue, 21 Nov 2000 10:19:19 +0000 To: tru64-unix-managers Subject: script to lock passwd file X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97480188824998 > > > /usr/sbin/vipw < > 3. awk -F: '{ if (substr($1,1,3) == "pwc") printf > "%s:%s:%s:%s:%s:/auth/users/%s:%s\n", $1, $2, $3, $4, $5, $1, %7; else print > $0 }' < old-password > new-password # this one came from Allen > Johannesen BTW, is there a way to manually lock passwd file so users won't mess it by running passwd command? maybe "touch /etc/ptmp" would be enough? -- finger spd@gtc1.cps.unizar.es for PGP / So be easy and free .mailcap tip of the day: / when you're drinking with me application/ms-tnef; cat '%s' > /dev/null / I'm a man you don't meet every day text/x-vcard; cat '%s' > /dev/null / (the pogues)