gpg: cannot open /dev/tty: Permission denied

Matthias Urlichs smurf@noris.de
Wed, 15 Sep 1999 18:56:35 +0200


Hi,

Randy Harmon:

> > I assumed that he wants to use it in a CGI script or something like
> > this and then it is not a good idea to write to the tty anyway.
>
If you're running on a web server then the web server has been putting itself into the background, thus it doesn't have a tty, thus opening /dev/tty will fail anyway, regardless of permissions.
> What exactly is it trying to write to the tty, anyway?
>
It's probably trying to read a passphrase, confirm a key, or whatever. ALWAYS use --batch when calling gpg from non-terminal programs. -- Matthias Urlichs | noris network GmbH | smurf@noris.de | ICQ: 20193661 The quote was selected randomly. Really. | http://www.noris.de/~smurf/ -- The inspiration of the Bible depends upon the ignorance of the gentleman who reads it. -- Robert Green Ingersoll