- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Monitor file deletion without turning on audit...
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
Forums
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
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
тАО08-01-2008 09:30 AM
тАО08-01-2008 09:30 AM
Monitor file deletion without turning on auditing
I am trying to find a reliable and secure means to monitor application file removal by system users without turning on accounting on the server.
I can easily monitor this in the $HOME/.sh_history file but knowledgable users can easily manipulate this information. So far I have added the follwoing to the $HOME/.profile of my test user:
HISTFILE=/var/adm/crash/history/.sh_history.$LOGNAME
readonly HISTFILE
export HISTFILE
print -s "LOGIN - `date '+%m-%d-%E-%H:%M'`"
HISTSIZE=1000
export HISTSIZE
This provides me limited control but understanding that the .sh_history file is not intended for this I would like to pursue alternatives. Any suggestions would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 12:54 PM
тАО08-01-2008 12:54 PM
Re: Monitor file deletion without turning on auditing
Although way over kill as intrusion detection you may kill two birds with one stone.
1) An intrusion detection implementation.
2) You can define your application files as files to monitor in HIDS. An alert will be sent if based on the rules.
Not saying this will work but may be worth looking into.
Another secret :) trick. mv the "rm" command and replace it with your script.
e.g.
#!/usr/bin/ksh
# My rm script. Actual rm is rm.real.
echo "$LOGNAME executing rm $*">>my_security.log
/usr/bin/rm.real $*
You will have to remove and put your script back whenever you apply patches to rm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 01:19 PM
тАО08-01-2008 01:19 PM
Re: Monitor file deletion without turning on auditing
fuel. I'd also like to build a new garage
without using any tools.
Isn't the accounting system designed to do
exactly what you say you want to do? As you
observe, these history-file schemes are not
reliable.
> [...] mv the "rm" command and replace it
> with your script.
And no one will figure out how to evade that
one, either. Right. Especially users who
have permission to remove these files about
which you care so much.
Lacking any explanation for why you "would
like to pursue alternatives", my suggestion
would be to use the superior method, to which
you're seeking alternatives.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 02:11 PM
тАО08-01-2008 02:11 PM
Re: Monitor file deletion without turning on auditing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 06:31 PM
тАО08-01-2008 06:31 PM
Re: Monitor file deletion without turning on auditing
You apparently aren't interested in my help,
but have you looked at "man 5 audit"?
"delete" seems to be one of the "Event
Categories" described there.
On a VMS system, it's possible to add an
audit ACE to an object's ACL, so this sort of
tracking is pretty easy there, on specific
files or whole classes of objects. Perhaps
it's all much more complicated on HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 08:21 PM
тАО08-01-2008 08:21 PM
Re: Monitor file deletion without turning on auditing
I have never used but i hope u can have a look at Tripwire, part of Internet Express....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 10:44 PM
тАО08-01-2008 10:44 PM
Re: Monitor file deletion without turning on auditing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2008 07:44 AM
тАО08-04-2008 07:44 AM
Re: Monitor file deletion without turning on auditing
Anshumali, thanks for the suggestions. I will review those options.
Rudy Smith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2008 08:08 AM
тАО08-04-2008 08:08 AM
Re: Monitor file deletion without turning on auditing
You suggested that this works. Can you please provide me the specifics about the configuration that you used to get this to work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2008 02:11 PM
тАО08-04-2008 02:11 PM
Re: Monitor file deletion without turning on auditing
Please help