Im logged in a Linux CentOS via ssh. There is a process that has been running for some time and i can find its PID via
htop
plus fn+f4 and typing the name of the file that spawned the process or
ps -aux | grep <file_that_spawned_the_process>
Both methods show me that the user that spawned the process is <Some_User>, however i am pretty sure that it was <Some_Other_User> via
sudo -u <Some_User> ./<file_that_spawned_the_process>
I want to find out who is <Some_Other_User>, if there is some other user at all. Finding out from which machine (I.P.) did he log into the CentOS host would also be appreciated.
I read all .bash_history from all users but couldnt find anything that suggested usage of sudo su <Some_Other_User>. I found some answers like this but it doesnt seem to be what im looking for. Does anyone have any suggestions? Everything i found is about either finding out which is my original user or about finding out which user (not original) spawned a process, but a combination of both doesnt seem trivial to me.