Skip to content

Instantly share code, notes, and snippets.

@adamency
Last active January 3, 2023 03:27
Show Gist options
  • Save adamency/335591bbb6351b94a3df6500268587bb to your computer and use it in GitHub Desktop.
Save adamency/335591bbb6351b94a3df6500268587bb to your computer and use it in GitHub Desktop.
Grant X server access to secondary user

Grant X server access to secondary user

These steps allows a secondary local user called <user> to use the local X server running on the machine that was launched by <main_user>. This will allow running graphical applications on a linux system (using X as the display server) from another user than the normal user.

User Values

  • <user>: user to be granted access
  • <main_user>: user that owns the X Server

Procedure

<main_user>: xhost -
<main_user>: xhost +si:localuser:<user>

Sources

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment