Hi!
I’m a little confuse. Are you asking about virtual machines or virtual desktops, those aren’t the same thing. If you want you use 2 different users in the same system at the same time, I’d say no, but you are able to copy/paste any file from one user to another using root privileges. Let’s say that you want to copy test.txt from home dir of user 2 into home dir of user 1.
‘’’ sudo cp /home/user2/test.txt /home/user1/```
The change the permissions of the file to user 1
Would I be able to launch a GUI application that way? This works with CLI based commands, but when I try to launch Chromium or Firefox, it throws an error “Unable to open X display” or “No DISPLAY environment variable specified”.
Or do I need to follow all the steps and start another xhost to be able to run a GUI application as another user?
In that case, what are the security implications of “disabling access control” with xorg-xhost?
Nope as i described. You need to open you xserver.
Well it opens the port, so that anyone in your local intranet or if no router with firewall is there, also the whole world could connect to your xserver.
Just keep sure you have a firewall and it is configured properly.