LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   How find which command has been executed by which user. HPUX 11.11 OS kshell (https://www.linuxquestions.org/questions/linux-distributions-5/how-find-which-command-has-been-executed-by-which-user-hpux-11-11-os-kshell-170426/)

murugesan 04-15-2004 06:31 AM

How find which command has been executed by which user. HPUX 11.11 OS kshell
 
Hello all,
I am using HPUX 11.11 OS kshell. There we have a large set of users ( logged in as super users)
Can anyone suggest a way to find which command has been executed by which user.


Thanks in advance,
Murugesan

Hidden_Hunter 04-15-2004 07:29 AM

if it is there user that has just been granted SU then you should be able to go in there dir's and do a vi of .bash_history but if it is actually using root no i don't see how.

ugge 04-15-2004 10:25 AM

The best would be to set up sudo.
With sudo you can grant access a user access to certain commands.
The sudo system would also log the who executed what.

Don't ask me for the setup. I have no idea how to di it.

murugesan 04-16-2004 05:26 AM

Thanks for the replies
Since all are super users the history is in .sh_history
And the commands executed by all the users are in this single file.
So I cannot identify them.
Yeah already we decided to use psudo command.
But I would like to know who executed that command.
Note that I have mentioned that the shell is ksh.


All times are GMT -5. The time now is 10:54 AM.