Disable ssh login for an account.

From munkjensen.net/wiki
Revision as of 14:06, 1 March 2017 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Disable account login without disabling the account

usermod --expiredate 1 [accountname]

Will let sudoers login to the account linke this:

sudo su - [accountname]