The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Get user name from ip address munnu High Level Programming 6 11-21-2006 06:21 PM
replace <Address> with a var input by user r2007 Shell Programming and Scripting 4 06-16-2005 01:14 PM
remote user administration wgriffin SUN Solaris 2 03-09-2005 08:53 PM
Locate a user by their IP address jagannatha UNIX for Dummies Questions & Answers 7 05-22-2003 05:28 PM
Change remote user help. hellz UNIX for Dummies Questions & Answers 2 08-26-2001 05:26 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-15-2008
naushad naushad is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 19
remote user ip address

can anybody help me to get a remote user ip address in SCO 5.0.5
  #2 (permalink)  
Old 09-15-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,575
Can be tricky...
How does the remote user connects to the box?
telnet, rlogin, ssh, ... depending of OS look for the cmd who and its options...
solaris 10 who suffices, HP, who -R etc...
Now if it gives a name rather then IP then either it finds the name in /etc/hosts, or it resolves it by DNS or dhcp server gives it...

After you enter in the less obvious...
  #3 (permalink)  
Old 09-15-2008
naushad naushad is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 19
remote user connect using alphacom(telnet) commands like who -x provides the whole list. not the current remote user
  #4 (permalink)  
Old 09-15-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,575
What about:
Code:
who am i
  #5 (permalink)  
Old 09-16-2008
naushad naushad is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 19
who am i wont provide ip address. it will display only userid pid and the time
  #6 (permalink)  
Old 09-16-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
If the output from who -x includes the TTY then you can use that to map to the current user. The tty command prints your current tty, or you can correlate with the current process's PID in a ps listing, which also usually includes tty information. (Not sure about SCO specifics, tho.)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0