Hi everyone,
I've been successful on using the UART on Raspberry Pi 4 as a serial console by doing as below:
In cmdline.txt added:
console=serial0,115200 systemd.debug-shell=1
and in config.txt added:
enable_uart=1
Now an unsecured console is accessible from the UART pins and every time the system boots up, this shell is accessible without prompting for a password and this compromises the security of the system.
I've been searching around this for decades now and found no solutions so far about how to make this shell secure by making it ask for a password before giving root shell access to the connected user?