Created Undoing Root "Auto-Login" (markdown)
parent
e3a199914c
commit
6ac4cf3bd6
14
Undoing-Root-"Auto‐Login".md
Normal file
14
Undoing-Root-"Auto‐Login".md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
This has been asked several times so I'll list the steps to undo autologin.
|
||||||
|
If you don't set a root password first, you will not be able to login to the container again, ever.
|
||||||
|
|
||||||
|
## 1. set the root password
|
||||||
|
```bash
|
||||||
|
sudo passwd root
|
||||||
|
```
|
||||||
|
|
||||||
|
## 2. Remove Autologin
|
||||||
|
**remove** ```bash--autologin root``` **from** ```bash/etc/systemd/system/container-getty@1.service.d/override.conf```
|
||||||
|
|
||||||
|
## 3. Reboot Machine
|
||||||
|
```bash
|
||||||
|
reboot
|
Loading…
x
Reference in New Issue
Block a user