snippets/old_snippets/disable-user.en.md

14 lines
250 B
Markdown

---
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
```