Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active December 13, 2023 19:55
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miguelmota/f0afbd871dc94511bad81b6084fc96aa to your computer and use it in GitHub Desktop.
Save miguelmota/f0afbd871dc94511bad81b6084fc96aa to your computer and use it in GitHub Desktop.
Linux sudo GUI prompt

Linux sudo GUI prompt

useful for applications that need to run scripts as root

(default ubuntu)

/usr/bin/pkexec --disable-internal-agent /bin/echo 'foo'

(kde)

/usr/bin/kdesudo --comment 'System needs administrative privileges. Please enter your password.' /bin/echo 'foo'

(gksu)

/usr/bin/gksudo --preserve-env --sudo-mode --description 'System' /bin/echo 'foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment