From 6ac4cf3bd67c05712652233c028e45860c0af2c5 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 14 Nov 2024 09:47:46 +0100 Subject: [PATCH] Created Undoing Root "Auto-Login" (markdown) --- "Undoing-Root-\"Auto‐Login\".md" | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 "Undoing-Root-\"Auto‐Login\".md" diff --git "a/Undoing-Root-\"Auto‐Login\".md" "b/Undoing-Root-\"Auto‐Login\".md" new file mode 100644 index 0000000..c013352 --- /dev/null +++ "b/Undoing-Root-\"Auto‐Login\".md" @@ -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 \ No newline at end of file