From: utzoo!decvax!cca!greep@Rand-Unix@sri-unix Newsgroups: net.unix-wizards Title: Re: Re: getlogin() can be fooled -- why? Article-I.D.: sri-unix.3010 Posted: Mon Aug 30 21:44:04 1982 Received: Wed Sep 8 02:02:48 1982 Date: Wednesday, 25 Aug 1982 16:50-PDT However, this only works if there is a tty open, or if there is some way of finding out the "controlling tty", and even then doesn't work if the process was started up by some background program (eg "at").