Monthly Archives: November 2017

Force PKI and Password authentication simultaneously on Ubuntu

I use AD authentication in my environment (for password-based authentication) Current Scenario A valid AD user logs in to the Ubuntu Linux server via SSH That user adds his public key to ~/.ssh/authorized_keys for passwordless login I disable/lock/delete the AD … Continue reading

Posted in Linux, Ubuntu, Uncategorized | Tagged , , , , | Leave a comment

Force expiry of a Linux Account

Just locking the linux account isn’t enough, since the user can use other methods to login, such as PKI. The best solution would be to force expire the account: sudo chage -M 0 username

Posted in Linux | Tagged , , , | Leave a comment