I'm writing a shell script that locks out users by putting a *LK* in the
/etc/passwd file. I know this is a potentially dangerous thing and I want
to know how to handle it right.
What I'll probably do is copy the password file to a temp file, to all the
modifications there and then replace the passwd file. I need to know what
else needs to be done so that things go right. I think I read something
about using a makepasswd command to rebuild the password database?
This script will run on SunOS and there is a shadow file although I'm not