--- title: "disable user" date: 2020-08-11T16:23:05+02:00 draft: false snippet_types: - sysadmin --- In this case disabling the user named ubuntu from logging in. This includes logging in via ssh. ```shell $ sudo usermod --expiredate 1 ubuntu ```