I am working with Solaris, which sometimes using
a general WS which any users can log into.
The question is:
I am working on Machine A(my own machine) and login to Machine B which any one can use this in order to login to Machine C.
*How to find out who login to Machine C*
In Machine C:
> ps -ef | grep 3012
sun 3014 3012 0 14:41:01 pts/0 0:00 -sh
root 3012 158 0 14:41:01 ? 0:00 in.rlogind
(As i understand from output above, it tells that a user has rlogin into machine C). So i do 'who'
root console Dec 6 14:50
sun pts/0 Dec 6 14:50 (172.30.0.127)
Then i do 'finger'
# finger @172.30.0.127
Login Name TTY Idle When Where
sun Sun User pts/0 6d Sat 15:15 sun288
midfrcl Frank Class pts/1 4:03 Tue 15:22 sun297
sun Sun User pts/6 1d Tue 09:35 sun295
sun Sun User pts/9 1 Thu 12:07 sun295
sun Sun User pts/8 1:32 Thu 16:49 sun295
Here I know that this user login from machine B (172.30.0.127), but I dont know which one because some of them are originally from other machine e.g. machine A and they are using the same username.
1) is it possible to figure this user out from machine C without accessing Machine B?
2) if i need to login machine B, how to solve this? How to map e.g. the process from machine B to the process in machine C.
I have check PID/PPID on both B and C, they doesnt seems to me related.