- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Monitor commands executed from remote machine
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2011 01:15 PM
тАО03-30-2011 01:15 PM
Monitor commands executed from remote machine
I have a linux machine with RHEL4 and I need to monitor commands which are executed from other machines. How can I achieve this?
Is it ok to configure syslog for this?
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2011 06:47 PM
тАО03-30-2011 06:47 PM
Re: Monitor commands executed from remote machine
As you likely know -- there are MANY ways commands can be issued remotely and "monitoring" each will depend on the HOW.
And the methods are as follows as far as I can remember:
ssh
rexec
remsh
rsh
sockets (inetd/services model)
telnet
job control via - Maestro, Autosys, CTRL-M, etc.
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2011 07:01 PM
тАО03-30-2011 07:01 PM
Re: Monitor commands executed from remote machine
We had a bad script which deletes files from home directory instead of home/archive. The smae has been corrected now. Still I get cases like files getting deleted from home directory and I feel that script is run from some other machine as we had pushed this script to numerous machines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2011 04:35 AM
тАО03-31-2011 04:35 AM
Re: Monitor commands executed from remote machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2011 05:36 AM
тАО03-31-2011 05:36 AM
Re: Monitor commands executed from remote machine
Thanks for your response.
I could see the login information from /var/log/secure file but could not see who deletes (through script, etc) the files which are under home directory.
Number of login/logout on this server is more than 10/min.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2011 01:56 AM
тАО04-07-2011 01:56 AM
Re: Monitor commands executed from remote machine
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2011 05:24 AM
тАО04-07-2011 05:24 AM
Re: Monitor commands executed from remote machine
A quick howto here:
http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html