Skip to content

Instantly share code, notes, and snippets.

@osallou
Created November 7, 2019 07:58
Show Gist options
  • Save osallou/76f81d01768d22ae2d8deb8e98c5bc6d to your computer and use it in GitHub Desktop.
Save osallou/76f81d01768d22ae2d8deb8e98c5bc6d to your computer and use it in GitHub Desktop.
#!/bin/bash
#small script to enable root access to x-windows system
xhost +SI:localuser:root
sudo $1
#disable root access after application terminates
xhost -SI:localuser:root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment