I try to start an x server for a certain user on tty5 as root user from tty6. My approach was to log into tty5 as a specific user from command line tty6. Then I would just chvt
to 5 and startx
there. Problem is, I have no clue how to login a certain user in a specified tty.
So to put it in a nutshell: Is there a command to change to a certain tty and login there as a distinct user from another tty using root privileges?
Or can I just startx
for a specified user and virtual terminal?
Edit: I want to use root privileges to login the specified user so that the password ist not asked for.