remote user ip address


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers remote user ip address
# 1  
Old 09-15-2008
remote user ip address

can anybody help me to get a remote user ip address in SCO 5.0.5
# 2  
Old 09-15-2008
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  
Old 09-15-2008
remote user connect using alphacom(telnet) commands like who -x provides the whole list. not the current remote user
# 4  
Old 09-15-2008
What about:
Code:
who am i

# 5  
Old 09-16-2008
who am i wont provide ip address. it will display only userid pid and the time
# 6  
Old 09-16-2008
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.)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

MySQL select user with the same IP address

Dear community, I woul like to make a query to output all the users having the same IP address. The table is somethig like: name logged_ip ==== ========= user1 127.0.0.1 user2 127.0.0.2 user3 127.0.0.3 user4 127.0.0.1 user5 127.0.0.2 user6 127.0.0.5I used this query... (4 Replies)
Discussion started by: Lord Spectre
4 Replies

2. Debian

Problem configuring IP address on remote device

I need to add a printer with Ethernet to my local network. The default IP address in the printer is 0.0.0.0 and I need to change it to a 192.168.0.x address. I have previously temporarily changed the IP address of a computer (with ifconfig) to an address similar to the new device and changed the... (8 Replies)
Discussion started by: snorkack59
8 Replies

3. Shell Programming and Scripting

validating(pingable or not) remote ip address in shell script

i need to verify whether the ip adress given as input to the shell script is pingable or not... that is whether the ip is alive and responding.. ping $ip_adress the above wont work in script because the execution is continuous... so the shell script keeps will dwell in this pinging process...... (8 Replies)
Discussion started by: vivek d r
8 Replies

4. Red Hat

How to confirm an user logged in is a remote user?

How do I confirm if a user logged in, is remote or local? In the case if the user is remote, how to be sure what authentication/method is it using, like LDAP, NIS or other? (2 Replies)
Discussion started by: kirtikjr
2 Replies

5. Shell Programming and Scripting

Email sent to multiple user address?

hi all, This is user that i want sent the email: Email = allan@gmail.com bruce8899@gmail.com Chris@gmail.com echo "$dir : $filecount is over the limit $limit " | mailx -s "${SUBJECT}" "${email}" However it cannot sent to 3 user..only sent to 1 user email address. Any 1 can help me... (15 Replies)
Discussion started by: proghack
15 Replies

6. UNIX for Dummies Questions & Answers

Panic kernal-mode address fault on user address 0x14

:) Firstly Hi all!!, im NEW!! and on here hoping that someone might be able to offer me some help... i have a server that keeps crashing every few days with the error message: PANIC KERNAL-MODE ADDRESS FAULT ON USER ADDRESS 0X14 KERNAL PAGE FAULT FROM (CS:EIP)=(100:EF71B5BD) EAX=EF822000... (10 Replies)
Discussion started by: Twix
10 Replies

7. OS X (Apple)

Ho do I masquerade the "user@user.local" address in mail/mailx?

Hi, I'm brand new here and looking for a solution: I'm using mail or mailx. The default reply address is «myshortusername@mylongusername.local» which makes absolutely no sense for anybody receiving my emails. But how do I change it? There seem to be many solutions but none for Mac OS X.... (0 Replies)
Discussion started by: gczychi
0 Replies

8. Programming

Get user name from ip address

hi all i am new in unix programming i want some help from this forum, i want to know how to get user name of other machine in local network from its ip address or suggest any books for networking programming on unix sachin (6 Replies)
Discussion started by: munnu
6 Replies

9. UNIX for Dummies Questions & Answers

Locate a user by their IP address

We have a user that is sending rather large print jobs to a windows printer, we need to track them down and advise a sensible approach to printing. The only thing that shows up in the windows print manager is the IP address of the source. Is this achievable? :confused: (7 Replies)
Discussion started by: jagannatha
7 Replies
Login or Register to Ask a Question