My English is pretty bad, the help I need is this: entered into a machine with OS AIX 5.3 and i execute su - user1 and then i execute su - user2 and then i execute su - user3 and finally its su - user4. there is some command that tells me the its that i have made?
You can figure it out by following the parent and child process ID associations. user1 logged in, then su'ed to user2, then to user3, then to user4 in this example:
Similar idea to kah00na:
Find out your terminal id with the tty command , shorten the result to match ps format then (using kah00na's terminal pts/0 as an example) issue ps -ftpts/0 .