Re: Lock Account
From: Miguel González Castaños (email@example.com)
- Previous message: openssh: "Lock Account"
- In reply to: openssh: "Lock Account"
- Next in thread: Parsons, Rick: "RE: Lock Account"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 20 Feb 2003 17:57:43 +0100 From: Miguel González Castaños <firstname.lastname@example.org> To: email@example.com
If you want to disable a user temporaly you can add an asterisk (*) before the corresponding entry
user in the /etc/passwd file:
openssh ha escrito:
> Hi !
> How can I lock an account.
> I have got several ssh user, which I only would like to permit keyfile logins;
> as a matter of fact I would like to lock their accounts.
> I tried usermod -L -p username -> which puts -L before the passwd in /etc/shadow but it is still
> Possible to login via passwd and ssh ?!
> I use debian linux woody
> Nik Engel NETWAYS GmbH
> Senior Systems Engineer Deutschherrnstr. 47a
> Fon.0911/92885-13 D-90429 Nürnberg
> firstname.lastname@example.org www.netways.de