History command

I am working on solaris and audit is not configured on server.
I get last commands used on server by HISTORY command, but I want some extra information like by which user command fired & by which host id
Because same time we have many people use one login & fire commands
& want History command with above information.

Please if any body can help me to do so without using audit

AKASH

Do you have the information about this tread?
I am looking for the same requirement.

I need to know who did each command in the history command.
Best regards.

You could start a unique history file per session. These will need deleting after a period of time. See "HISTFILE" in the man for your shell.

For example in user .profile file:

DATEX=$(date +%Y%m%d%H%M%S)
TTYX=$(basename $(tty))
HISTFILE=".sh_history_${DATEX}_${TTYX}"
echo "HISTFILE=${HISTFILE}"