> Didn't you all ever read the manpage for passwd? From the
> refered manpage:
>
> Account maintenance
> User accounts may be locked and unlocked with the -l and
> -u flags. The -l option disables an account by changing
> the password to a value which matches no possible
> encrypted value. The -u option re-enables an account by
> changing the password back to its previous value.
>
> The account status may be given with the -S option. The
> status information consists of 6 parts. The first part
> indicates if the user account is locked (L), has no pass-
> word (NP), or has a usable password (P). The second part
> gives the date of the last password change. The next four
> parts are the minimum age, maximum age, warning period,
> and inactivity period for the password.
>
> Just a classic case of RTFM.
>
THAT won't just work for OpenBSD. I'd rather edit the shadow file for
locking up users. And besides, what usermod does in Linux is exactly
this: put an ! just before encrypted password in shadow.