how many su - users I ejecute in prompt AIX 5.3


 
Thread Tools Search this Thread
Operating Systems AIX how many su - users I ejecute in prompt AIX 5.3
# 1  
Old 04-23-2012
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.
# 2  
Old 04-26-2012
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:
Code:
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:/:$

# 3  
Old 04-26-2012
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 .
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

AIX prompt delayed when users increase

I am facing a situation where when there are lesser users, i am able to login to the AIX server. If the number of users increase - the login prompt is getting delayed. Sometimes even timeout occurs. This is after the upgrade to AIX 7.1 TL 4. Can someone suggest a way to overcome this situation? (6 Replies)
Discussion started by: ggayathri
6 Replies

2. AIX

ssh keys - no password prompt from AIX to RPA

hello, i am running an AIX 5.3 machine and i want to connect via ssh to the RPA Management site without prompting for password. i already had a public key of this server as i use the same thing for ssh connection with other AIX machines. i connected to the RPA Management Site and i run the... (9 Replies)
Discussion started by: omonoiatis9
9 Replies

3. UNIX for Dummies Questions & Answers

scp not working because of prompt (AIX, tcsh)

Hello, I have this problem: I have a server to which I ssh, and it has a special prompt request. The prompt is done by a ?prompt command. It is fine with SSH, since the prompt I guess gets some input, but when I use SCP, the copy always fails. So, I was wondering if there is maybe a... (1 Reply)
Discussion started by: lastZenMaster
1 Replies

4. AIX

Timestamp in AIX Prompt

I am using ksh under IBM's AIX, version 6.1. I wopuld like to add the current time to my prompt. I understand that I can change the value of $PS1 in my .profile. So far my attempts at setting the time have resulted in setting the time to what it was when the .profile was executed. ( It doesn't... (2 Replies)
Discussion started by: PeterF
2 Replies

5. AIX

Users on Aix 6

Hello everybody My question is about which default userīs should I disable it on Aix 6.1 I would like to hear your opinions. Thanks for your comments (0 Replies)
Discussion started by: lo-lp-kl
0 Replies

6. AIX

Custom AIX Prompt

In my .profile, my prompt is set like this: set -o vi PS1=`logname`@`hostname -s`:'$PWD>' Is there a way to show what the history number would be of the command I'm typing in the prompt? For example, I frequently run commands then run 'history' to pull up the history number of a command... (2 Replies)
Discussion started by: ptrotter
2 Replies

7. AIX

AIX users got expired !

Guy's .. I have faced an issue in AIX server, users got expired without asking me about the expiration and did not asking me to change the old password moreover will not accept my login with old password any more until reset the ID with new password Pls assist in this to how configure the... (3 Replies)
Discussion started by: Mr.AIX
3 Replies

8. AIX

Users in AIX

Good Afternoon How can i change password without it requests the following thing to me: Changing password for "prueba1" prueba1's Old password: what desire is that is made directly like in root: Changing password for "prueba1" prueba1's New password: In the company have a two role... (3 Replies)
Discussion started by: Lost in AIX
3 Replies

9. UNIX for Dummies Questions & Answers

Users In AIX

Good Afternoon How can i change the password without it requests the following thing to me: Changing password for "prueba1" prueba1's Old password: what desire is that is made directly like in root: Changing password for "prueba1" prueba1's New password: I need to create 2 users... (1 Reply)
Discussion started by: Lost in AIX
1 Replies

10. AIX

Users on AIX 5.2

Hi everybody, I have a system with AIX 5.2. I want to create a User on this system. This User shouldn't has an admin rights, but I want to allow him to remove any directory from a specific path where the owner of this path is another user (not root). what is the properties that should be... (4 Replies)
Discussion started by: aldowsary
4 Replies
Login or Register to Ask a Question