Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


  Search this Thread
Old 04-15-2004, 06:31 AM   #1
Registered: May 2003
Posts: 163

Rep: Reputation: 28
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,
Old 04-15-2004, 07:29 AM   #2
Registered: Mar 2004
Posts: 35

Rep: Reputation: 15
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.
Old 04-15-2004, 10:25 AM   #3
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
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.
Old 04-16-2004, 05:26 AM   #4
Registered: May 2003
Posts: 163

Original Poster
Rep: Reputation: 28
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
removing only most previously executed command from history? jagroop mand Linux - Newbie 2 01-19-2005 05:39 AM
"modprobe usbkbd" command cann't be executed! lucklemon Linux - Hardware 1 05-21-2004 08:43 AM
No effect when 'export' command executed in a script? sylvain_gnu Linux - Software 6 04-20-2004 07:15 PM
How do I undo last command executed? Elfking Linux - General 4 02-05-2004 01:18 AM
bashes aren't executed as user since samba-installation pablovschby Linux - General 1 11-18-2003 01:55 PM > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration