Ah...sorry good point.

I'm not 100% up to speed on how key auth works, been a while since I played with it...can't you just remove / rename the key files from their home dir?

Kev

Jose Gonzalez Gomez wrote:


This works in the case the user uses password authentication, but what about public key authentication? I've tried and in this case the user can still login after disabling it with usermod -L.


   Thanks, regards
   Jose

Kev wrote:

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




-- [EMAIL PROTECTED] mailing list




-- [EMAIL PROTECTED] mailing list



Reply via email to