Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.