Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I have sometimes problem when during entering password for su other window appears and steals the focus ("wait - did I just entered root password on public IRC chatroom?" - it did not happened but might).

Is it possible to configure su/sudo/PAM to use system dialog instead of terminal? I'm using gnome3/gnome-shell if it helps.

share|improve this question
That feels like the wrong question: what matters isn't whether you type your password in the terminal window or a dedicated window, but whether focus stealing is prevented while you're typing your password. – Gilles Apr 9 '11 at 21:46
up vote 2 down vote accepted

You can use gksu and gksudo in Gnome to have a password prompt window presented. I believe that under Gnome the gksu(do) prompt windows are protected from focus stealing.

You use gksu(do) in the same way you use su(do):

gksudo apt-get update

gksu Bob

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.