LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Need to log users command history (https://www.linuxquestions.org/questions/linux-security-4/need-to-log-users-command-history-207331/)

FatSteve 07-20-2004 05:26 AM

Need to log users command history
 
I need to be abble to log all commands that are typed in by a user.

Date, time, command and user need to be logged. If anyone knows how to turn this on or if I need to get a program I would appreciate the help.

The OS's are Red Hat 9 and SCO OSR5 help with either would be good both would be great.

Thanks,
Steve

Capt_Caveman 07-20-2004 07:30 AM

The users .bash_history will usually keep a listing of the users bash commands. If you need something more advanced try process accounting (psacct). There are RPMs available here. You can find a brief synopsis of what commands are included and their function here

unSpawn 07-22-2004 06:25 PM

Bash history will be written on logout, and linking it to /dev/null or using "set" to change HIST.* vars are workarounds. The first thing I'd like to know is why you want this and if you want to log *everything* or just shell sessions. Knowing that will make coming up with an appropriate solution easier.


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