![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Make ssh and send commands | nagomes | Shell Programming and Scripting | 3 | 03-04-2009 05:59 AM |
| Can BASH execute commands on a remote server when the commands are embedded in shell | bash_in_my_head | Shell Programming and Scripting | 1 | 12-04-2008 01:51 AM |
| HELP: Need to send commands to Program | the_m4ch1ne | Shell Programming and Scripting | 1 | 08-01-2008 06:46 PM |
| Logging commands and output | soliberus | SUN Solaris | 3 | 10-25-2007 06:30 AM |
| Logging all commands after a sudo su- | linuxmtl | UNIX for Advanced & Expert Users | 4 | 11-11-2002 10:33 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Logging shell commands and send it out
Dear friends
I'm looking for a solution to log all commands that users do in my RedHat box, and send it out to other remote server, Is there any guide for that Thanks ---------- Post updated at 04:20 AM ---------- Previous update was at 03:47 AM ---------- I can think of something else I already have a sloution to logg all commands but in the same local machine and have have a syslog server, Now how I can make syslog logs this file that have commands logs? |
|
||||
|
Quote:
Rootsh can log to syslog so the only thing you need to do is make the remote syslog server also listen for external syslog messages and configure your local syslog server to send messages to remote. * If you want to separate syslogs and (can) use Syslog-NG check SourceForge.net: rootsh: for "how to" details. |
|
|||||
|
ksh93 supports this feature by default using the audit/accounting facility. See KSH93 Auditing and Accounting for more information.
bash does not have any facilities to do this but if you search the Internet you will find patches out there which enable you to build a custom version of bash to provide this feature. |
|
||||
|
That's all nice but that patched Ksh does not hook into Syslog (wrt an implications of an application being allowed to do housekeeping on its own auditing, corellation benefits of centralized timestamping, remote logging opportunity) like 'rootsh' or 'sudosh' could. In that respect it is more akin to the Honeypot Bash patches Anotatla provided at the time. Also the article does not show any output is recorded like aforementioned applications could.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|