X11: run a gnome app as another user

后端 未结 6 1830
日久生厌
日久生厌 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:25

    gksu -u  -c 
    

    Replace with the username to run the command as, and > with the command you want to run. Remember that the program will be run in the s context, but in the current directory.

    In the popping up window, enter the password of the target of course.

提交回复
热议问题