Created
November 7, 2019 07:58
-
-
Save osallou/76f81d01768d22ae2d8deb8e98c5bc6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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