tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Hutcheson, Mike" <Mike_Hutcheson@baylor.edu>
Subject: Getting client IP address from shell
Date: Fri, 31 Jan 2003 11:26:10 -0600	[thread overview]
Message-ID: <D803FD4F4425EB4588FE27C71F5EE3E96AA639@FS-EXCHANGE1.baylor.edu> (raw)

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


                 reply	other threads:[~2003-01-31 17:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox