how many su - users I ejecute in prompt AIX 5.3

Hi Colleagues,

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?

Thank you for advanced.

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:

hostname:/:$ ps -ef | grep "\-ksh" | grep -v grep
    user3 10748124 11468914   0 13:09:22  pts/0  0:00 -ksh
    user2 11468914 12845170   0 11:18:46  pts/0  0:00 -ksh
    user1 12845170 19202086   0 11:18:45  pts/0  0:00 -ksh
    user4 14942442 10748124   1 13:09:23  pts/0  0:00 -ksh
hostname:/:$

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 .