From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Hutcheson, Mike" Newsgroups: gmane.os.tru64.managers Subject: Getting client IP address from shell Date: Fri, 31 Jan 2003 11:26:10 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1044033889 19743 80.91.224.249 (31 Jan 2003 17:24:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2003 17:24:49 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18eeuF-000588-00 for ; Fri, 31 Jan 2003 18:24:48 +0100 Original-Received: (qmail 14780 invoked by uid 5); 31 Jan 2003 17:26:27 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14771 invoked by uid 49493); 31 Jan 2003 17:26:27 -0000 Original-Received: from Mike_Hutcheson@baylor.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-2.1/5.0):. Processed in 0.441996 secs); 31 Jan 2003 17:26:27 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 31 Jan 2003 17:26:26 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9L00F0G9S1UH@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 31 Jan 2003 12:26:26 -0500 (EST) Original-Received: from FS-EXCHANGE1.baylor.edu (flopsy.baylor.edu [129.62.3.249]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9L0065J9RMFU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 31 Jan 2003 12:26:11 -0500 (EST) Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 Thread-Topic: Getting client IP address from shell Thread-Index: AcLJTdiAnklCVJ0dTa6d4EtD34tGYg== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: main.gmane.org gmane.os.tru64.managers:3174 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3174 Hi. I've been racking my brains on this (rattle rattle) and I'm almost = embarrassed to ask since there's probably an obvious answer. On a Tru64 = Unix 5.1A cluster with enhanced security enabled, I have an account that = is "captive." In other words, the user is taken into a menu and doesn't = get to the command line. The shell is the Borne shell. While in .profile, I would like to get the host name or IP address of = the client that is either telnetting or ssh'ing into the account. I'm = running OpenSSH and Tru64's telnet. I'm using TCPwrappers with telnet. = OpenSSH creates an environment variable called SSH_CLIENT which I could = use but I still haven't figured out how to address the situation if = someone telnets into the account. Any suggestions? Thanks for your help, Mike Hutcheson (Mike_Hutcheson@baylor.edu) Systems Manager (254) 710-4110 Baylor University - Information Technology Services