how to start a new terminal with agetty (not systemd)
3
votes
1
answer
2785
views
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 getty@tty10.service
, 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 -- ' --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?
Asked by Adriano_epifas
(216 rep)
Oct 2, 2019, 08:34 PM
Last activity: May 10, 2021, 04:35 PM
Last activity: May 10, 2021, 04:35 PM