S
S
Sergey Prokhorov2019-02-20 16:41:20
SSH
Sergey Prokhorov, 2019-02-20 16:41:20

How to run a program via ssh to another user?

Example:
The user is sitting at the computer using the user account, can I log into this computer via ssh from root, for example, launch his browser / text editor?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shoolcs, 2019-02-20
@NeonTheOne

Yes you can.

XAUTHORITY=/home/user/.Xauthority DISPLAY=:0.0  command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question