[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trouble with /dev/tty vs. /dev/ttyX



>>>>> "J" == Joe Reinhardt <jmr@everest.radiology.uiowa.edu> writes:

J> I was trying to use gpg and got this error:

J> ~ {138}% gpg --gen-key
J> gpg (GnuPG) 1.0.1; Copyright (C) 1999 Free Software Foundation, Inc.
J> This program comes with ABSOLUTELY NO WARRANTY.
J> This is free software, and you are welcome to redistribute it
J> under certain conditions. See the file COPYING for details.

J> gpg: cannot open /dev/tty: Permission denied



J> The error occurs from either an xterm or a virtual term.  It looks
J> like the program is trying to open /dev/tty rather than /dev/ttyX
J> (e.g., /dev/tty2) -- I don't know why?

/dev/tty is a psuedo-tty that is always the current tty (whether a
real one, a serial port, or a pty). You need read and write access to it.

% ls -l /dev/tty
crw-rw-rw-    1 root     root       5,   0 Dec 31  1969 /dev/tty
%

on my system. (the odd date is because I am running with devfs patch).

-- 
               More Important Drivel from:
 Scott Henry <scotty@sgi.com> /\/\/\  http://reality.sgi.com/scotth/


Reply to: