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.
Is it possible to set su to use WE password dialog
linux;gnome;su;pam;gnome shell
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 updategksu Bob