Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 1998 13:59:19 -0500
From:      Nathan Dorfman <nathan@rtfm.net>
To:        David Hawkins <dhawk@river.org>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: How to lock out a nonpaying user?
Message-ID:  <19980110135919.13041@rtfm.net>
In-Reply-To: <199801101411.GAA17813@ohio.river.org>; from David Hawkins on Sat, Jan 10, 1998 at 06:11:10AM -0800
References:  <199801101411.GAA17813@ohio.river.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 10, 1998 at 06:11:10AM -0800, David Hawkins wrote:
> How do you lock out a person for nonpay so that it's relatively
> easy to reactivate their account later? I tried replacing their
> respective .cshrc and .profile with   exec /bin/cat goaway.message
> but one has gotten around that. I also add them to /etc/ftpusers
> so they can't use delete in ftp to remove the .cshrc
> 
> Suggestions?
> 
> later, david
> --
> David Hawkins  -- dhawk@river.org        http://www.river.org
> Clever people seem not to feel the natural pleasure of bewilderments,
> and are always answering questions when the chief relish of life is to
> go on asking them.  -- Frank Moore Colby

Run /usr/sbin/vipw, and put a * character in front of their encrypted
password field. The reason everyone uses * for this purpose is that the
hash never generates a * in the hashed password string--thus the user
will not be able to log in. If you just add it to the password instead
of replacing, you can easily re-enable the account by removing one
character.
-- 
   ________________ _______________________________
  / Nathan Dorfman V PGP: finger nathan@rtfm.net  /
 / nathan@rtfm.net |    http://www.rtfm.net      /



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980110135919.13041>