- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tracking rm and/or .sh_history
Operating System - HP-UX
1753774
Members
6922
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО07-28-2005 11:21 AM
тАО07-28-2005 11:21 AM
Is there a way to script something to track all rm, redirects, mv ... any command that could delete or change a file? What about getting .sh_history if it is altered with?
Thanks.
Thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 11:56 AM
тАО07-28-2005 11:56 AM
Solution
See Bill's response (Nov 27, 2001 21:40:52) in
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=113459
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=113459
"Downtime is a Crime."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 08:37 PM
тАО07-28-2005 08:37 PM
Re: Tracking rm and/or .sh_history
One more option,
Just write the command
script logfile
in .profile of all users.
Not all that the users will write will go into that logfile.
Just write the command
script logfile
in .profile of all users.
Not all that the users will write will go into that logfile.
Vibhor Kumar Agarwal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 08:58 PM
тАО07-28-2005 08:58 PM
Re: Tracking rm and/or .sh_history
You can put a script in /etc/profile for generating history of separarte users as like,
# Create a directory like,
mkdir /var/history
-- /etc/profile --
set -o $EDITOR
export HISTFILE=/var/history/.history_${LOGNAME}
export HISTSIZE=1000
Another way,
you have to put shell wrapper for generating individual logs for rm, mv commands. Like cd command in,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=939679
write a wrapper for yours.
hth.
# Create a directory like,
mkdir /var/history
-- /etc/profile --
set -o $EDITOR
export HISTFILE=/var/history/.history_${LOGNAME}
export HISTSIZE=1000
Another way,
you have to put shell wrapper for generating individual logs for rm, mv commands. Like cd command in,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=939679
write a wrapper for yours.
hth.
Easy to suggest when don't know about the problem!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP