I want to open a terminal (xterm, gnome-terminal, tilda, whatever) and have it prompt for a username and password to login as. I thought this would be simple but all my Google results are polluted with stuff about making bash a login shell, which means something completely different as running
bash --login produces does not ask for a username and password.
Surely there is a way to do this?
EDIT: The environment is an embedded device. I want to have a way for technicians to be able to open a terminal overtop of the WebUI/browser, login and fix stuff.
xterm -e login
OR (more dangerously) something along the lines of:
#!/bin/bash while :; do read -p "User: " USER su - $USER -c "bash"; done;