Circa 2001-Sep-20 12:38:53 -0700 dixit Sean 'Shaleh' Perry:

: On 20-Sep-2001 Greer, Darren (MED) wrote:
: > Perhaps this question is more of an X issue that blackbox, but...
: > 
: > I have a few apps that require root privileges.  What would be the best
: > way through the "menu" to have those apps prompt for the root password
: > prior to running?
: 
: write an xsudo program.  The world over will love you, especially if
: you do not use a major toolkit to do it.

You can probably use the OpenSSH passphrase dialog to do some of the
work:

  http://www.pobox.com/~jmknoble/software/x11-ssh-askpass/

The dialog prints the entered pass{word,phrase} on stdout.  You should
be able to write a program which popen()s x11-ssh-askpass and then does
pty/tty magic to give the password to su.

-- 
jim knoble | [EMAIL PROTECTED]   | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)

PGP signature

Reply via email to