On Mon, 11 Jun 2001, Reid Sutherland wrote:
> > For example, if I have
> >
> >     sgifford:abc12345:::::
> >
> > in /etc/shadow, it becomes
> >
> >     sgifford:*LOCK*abc12345:::::
> >
> > That solves the problem of where to put the password, but maybe there
> > is a more elegant qmail-based solution.
> >
>
> Good call, this is the most viable solution so far.  I think it's the best
> way IMHO.

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.

-- 
Antonio Dias

Reply via email to