![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| last logged on info | nokia1100 | Shell Programming and Scripting | 1 | 04-07-2007 08:32 AM |
| crontab changes logged? | chlawren | AIX | 4 | 02-05-2007 08:47 AM |
| Need help getting logged in to server | mayewil | SUN Solaris | 1 | 10-26-2006 12:06 PM |
| know who logged and logged out with their timings | vkandati | UNIX for Dummies Questions & Answers | 3 | 03-09-2005 07:04 AM |
| Is user logged on?? | provo | UNIX for Dummies Questions & Answers | 1 | 12-07-2001 02:41 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
Say my login user id is "t007" and I login into the unix server first using my id and password and then I used to use "su" command to switch the user using root user id and password. Now, how the third person will come to know who has logged in as a first user ? As: Login: t007 password: abcd $ su - mqsiadm password : qwert123 $$ [now I am as user "mqsiadm"] $$ [How the third person will come to know who logged in first ? (i.e. t007)] Now if I'll exit, I'll first comeout as a "mqsiadm" and then i'll be as "t007". Please give me the solution to this !! Thanks in advance !! |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I am not sure if I understand it correctly. If so, then:
1. You could try to trace what is your parent process and this way you could probably get this 2. Probably all the users will be assigned to the same console - try ps'ing with a full list and then checking what consoles are assigned to the user. 3. I am not sure about that but probably you could try to check if the real-uid and effective-uid are set to the given user IDs. |
|
#3
|
|||
|
|||
|
Quote:
Yup , thanks man, parent process id will work. I had an idea about that but when i tried it was not working. Now I got the solution. Just, I had to dig more. Thanks anyways. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|