For the sake of learning, I wanted to start a new terminal (let's say tty10) from the command prompt. I know I can just run sudo systemctl start [email protected], but I want to run it manually for now. I checked systemd service getty@ and it uses the following command line:
/sbin/agetty -o '-p -- \\u' --noclear %I $TERM
So, trying to replicate that from a terminal (tty1) I ran this:
sudo /sbin/agetty -o '-p -- <username>' --noclear tty10 linux
It indeed started a new login prompt at terminal 10, I enter the username but it never prompts for a password. Besides, when I go back to terminal 1 I see it logged out. What am I doing wrong?