> "Reid Sutherland" <[EMAIL PROTECTED]> writes:
>
> [...]
>
> >     Most likely I'll have to store password somewhere and replace it in
the
> > shadow file with a 'x' when suspended, and put the crypt password back
once
> > the account is restored.
>
> Not qmail related, but a trick I like to use is to just prepend *LOCK*
> to their crypted password entry.  Then to restore the account and put
> the correct crypted password back, you just remove *LOCK*.
>
> 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.

-reid


Reply via email to