time dependent login

Louis A. Mamakos louie at sayshell.umd.edu
Sat Jun 2 13:37:52 AEST 1990


In article <1990May31.172936.10030 at cbnews.att.com> res at cbnews.att.com (Robert E. Stampfli) writes:
>
>Why *not* modify the password file?  To turn an account "xyz" off:

>/bin/echo '/^xyz:/s/:/:NOLOG/\nw' | /bin/ed /etc/passwd


What happens if someone else is trying to modify the password file
(changing their password, adding a user, etc)?  Someone's going to
lose.  You'll have to obey whatever locking convention is used on your
particular platform to arbitrate access to /etc/passwd to make this
work reliably.

louie



More information about the Comp.unix.wizards mailing list