![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| last logged on info | nokia1100 | Shell Programming and Scripting | 1 | 04-07-2007 11:32 AM |
| crontab changes logged? | chlawren | AIX | 4 | 02-05-2007 11:47 AM |
| Need help getting logged in to server | mayewil | SUN Solaris | 1 | 10-26-2006 03:06 PM |
| know who logged and logged out with their timings | vkandati | UNIX for Dummies Questions & Answers | 3 | 03-09-2005 10:04 AM |
| Is user logged on?? | provo | UNIX for Dummies Questions & Answers | 1 | 12-07-2001 05:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 !! |
|
||||
|
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. |
|
||||
|
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. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|