Disable ssh login for an account.: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=== Disable account login without disabling the account === | === Disable account login without disabling the account === | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="shell" line>usermod --expiredate 1 [accountname]</syntaxhighlight> | ||
Will let sudoers login to the account linke this: | Will let sudoers login to the account linke this: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="shell" line>sudo su - [accountname]</syntaxhighlight> | ||
[[Category:Debian]] | [[Category:Debian]] |
Latest revision as of 13:06, 1 March 2017
Disable account login without disabling the account
usermod --expiredate 1 [accountname]
Will let sudoers login to the account linke this:
sudo su - [accountname]