X11: run a gnome app as another user

后端 未结 6 1840
日久生厌
日久生厌 2021-02-01 20:35

I have ubuntu + x11 + gnome.

I want to run a graphical application as another user.

However, when I start it from the command line using sudo -u otheruser

6条回答
  •  佛祖请我去吃肉
    2021-02-01 21:08

    You probably need to tell your X server to accept connections from another user than the one owning the server instance (you). Look into the xhost command.

提交回复
热议问题