1825678 Members
3617 Online
109686 Solutions
New Discussion

comands overview

 
SOLVED
Go to solution
aruns_s
Frequent Advisor

comands overview

Hi
As a root administrator I would like to see the commands run by other users in my server.Is there any way to trace this other than refering .sh_history.


regds
Arun
5 REPLIES 5
Adisuria Wangsadinata_1
Honored Contributor
Solution

Re: comands overview

Hi Arun,

Yes, you can by turning on the trusted system on your machine and from there you can do the audit of the user on your system.

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Muthukumar_5
Honored Contributor

Re: comands overview

Is your system trusted on non-trusted. If trsuted then you can view the commands run by other users.

Else,

You have to setup history setup in /etc/profile as,

set -o ksh
# Change if you want
export HISTFILE=$HOME/.sh_history
export HISTSIZE=2000

It will log those details in history file. If you want another new solution then,

--- Edit /etc/profile --- and put this,

script -a $HOME/${LOGNAME}.log

It will automatically log all commands and results.

It is better to use HISTFILE setup to collect only files.

-Muthu
Easy to suggest when don't know about the problem!
aruns_s
Frequent Advisor

Re: comands overview

please advice how can I audit the coommands used by others in a trusted system
Muthukumar_5
Honored Contributor

Re: comands overview

check this:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=988316

--
Muthu
Easy to suggest when don't know about the problem!