Disable ssh login for an account.: Difference between revisions

From munkjensen.net/wiki
Jump to navigation Jump to search
Created page with "=== Disable account login without disabling the account === <syntaxhighlight lang="xml" line>usermod --expiredate 1 [LOGIN]</syntaxhighlight> Will let sudoers login to the a..."
(No difference)

Revision as of 12:59, 1 March 2017

Disable account login without disabling the account

usermod --expiredate 1 [LOGIN]

Will let sudoers login to the account linke this:

sudo su - [LOGIN]