Updated Undoing Root "Auto‐Login" (markdown)

CanbiZ 2025-05-09 15:08:38 +02:00
parent 57be012872
commit 8fb9619e3f

@ -1,6 +1,7 @@
This has been asked several times so I'll list the steps to undo autologin. 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. If you don't set a root password first, you will not be able to login to the container again, ever.
# Debian / Ubuntu:
## 1. set the root password ## 1. set the root password
```bash ```bash
sudo passwd root sudo passwd root
@ -14,8 +15,9 @@ sudo passwd root
reboot reboot
``` ```
-----
Alpine: # Alpine:
## 1. set the root password ## 1. set the root password
```bash ```bash
passwd root passwd root