Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Instead of using gksudo in a bash script, I want to invoke the authenticate dialog ( as in screenshot) instead. Is it possible? If yes, how?


Ubuntu Authentication dialog

share|improve this question
Isn't that dialog invoked by gksu itself or policykit (for example synaptic). – Uri Herrera Dec 26 '12 at 0:26
Not at all. it's not gksu (gksudo is somehow an alias for gksu in Ubuntu). But policykit is from what I recall a keyword in what I am looking for. Of course, when you run synaptic without root privilege, it prompts you with the authenticate dialog I am interested in. – Hanynowsky Dec 26 '12 at 1:07

Well. 'just found the man page in Ubuntu wiki. Actually it's pkexec

pkexec --$USER somepackage


Thanks @Uri Herrera . You were the trigger.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.