Gentoo Archives: gentoo-dev

From: Kurt Lieber <klieber@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] locking user accounts doesn't really lock them.
Date: Fri, 31 Oct 2003 22:18:43
Message-Id: 20031031221838.GB2395@mail.lieber.org
In Reply to: Re: [gentoo-dev] locking user accounts doesn't really lock them. by Kurt Lieber
1 On Fri, Oct 31, 2003 at 05:01:17PM -0500 or thereabouts, Kurt Lieber wrote:
2 > Ideally, there is one simple way of *completely* locking out a user from a
3 > machine, short of deleting their entry in /etc/(passwd|shadow)
4
5 As was just pointed out to me on irc, expiring the account, as opposed to
6 locking the password, will do what I want. So:
7
8 usermod -e 0000-00-00 <user>
9
10 I still think SSH should find a way to check/respect the ! character in
11 passwd fields, but for now, I can at least use this as a workaround.
12
13 --kurt

Replies