Or use usermod (man usermod)

It can disable the account for you instantly (usermod -L username) or after a certain time frame (usermod -e)

But Franks suggestion will work equally well...just in case you don't fancy editing the shadow file manually :)

Kev


Frank Sch�fer wrote:
Hi,

put a trailing '*' to the password field in /etc/shadow.

Regards
Frank


On Tue, 2003-11-11 at 12:26, Jose Gonzalez Gomez wrote:


Hi there,

I'd like to expire an user, so he is no longer able to login to a machine using ssh. How can you acomplish this? I would like to keep the user, and all its information (including password, public/private keys...) so I can reactivate it later.

   Regards,
   Jose


-- [EMAIL PROTECTED] mailing list



-- [EMAIL PROTECTED] mailing list




-- [EMAIL PROTECTED] mailing list



Reply via email to