Disable ssh login for an account.: Difference between revisions
No edit summary |
|||
Line 5: | Line 5: | ||
Will let sudoers login to the account linke this: | Will let sudoers login to the account linke this: | ||
<syntaxhighlight lang="xml" line>sudo su - [accountname]</syntaxhighlight> | <syntaxhighlight lang="xml" line>sudo su - [accountname]</syntaxhighlight> | ||
[[Category:Debian]] |
Revision as of 13:01, 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]