- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Monitoring of the deletion of the files/directorie...
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
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
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
04-07-2004 04:31 PM
04-07-2004 04:31 PM
Is there any technique apart from 'auditing' to monitor the deletion of the files/directories on HP-UX
To enable 'auditing' we need to turn the system to trusted system, which is not possible on our servers due to some application related issues.
Regds,
Ismail.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 05:16 PM
04-07-2004 05:16 PM
SolutionMove the
rm -> r (#mv /usr/bin/rm /usr/bin/r)
rmdir -> rd (#mv /usr/bin/rmdir /usr/bin/rd)
Create an log file for r, and rd
#mkdir /var/rmlog
#> /var/rmlog/rlog
#> /var/rmlog/rdlog
Follow the script rm, to call r, and also make a logging facility. the outline
#vi /usr/bin/rm
-------
whoami >> /var/rmlog/rlog
date >> /var/rmlog/rlog
echo "-----------" >> /var/rmlog/rlog
echo attempt to rm $1 >> /var/rmlog/rlog
echo "-----------" >> /var/rmlog/rlog
/usr/bin/r $1
echo "-----------" >> /var/rmlog/rlog
Similarly u can make for rmdir, and implement it.
I had implemented 1 yr ago, like this.
Hope this will meet ur requirement.
suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 05:29 PM
04-07-2004 05:29 PM
Re: Monitoring of the deletion of the files/directories on HP-UX
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 06:05 PM
04-07-2004 06:05 PM
Re: Monitoring of the deletion of the files/directories on HP-UX
That's an excellent idea.That's really genius.
"No problem can stand the assault of sustained thinking."
Dear Kapil,
Also thanks for your efforts.
Regds,
Ismail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 06:55 AM
04-22-2004 06:55 AM
Re: Monitoring of the deletion of the files/directories on HP-UX
Just food for thought.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 07:04 AM
04-22-2004 07:04 AM
Re: Monitoring of the deletion of the files/directories on HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 07:07 AM
04-22-2004 07:07 AM
Re: Monitoring of the deletion of the files/directories on HP-UX
put at 1. place a directory containing all locals i.e. /usr/mycompany/bin.
Create a script called rm into /usr/mycompany/bin containing s.th similar to :
#!/usr/bin/ksh
LOG=
{
echo "$(id) $(date) $(pwd)"
echo "$*"
} >> $LOG
/usr/bin/rm $*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 09:50 AM
04-22-2004 09:50 AM
Re: Monitoring of the deletion of the files/directories on HP-UX
Using mv takes time if the files are moved across FS.
Juergen script has not this problem as it just logs the deletion.
My 2 cents
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 08:13 AM
04-26-2004 08:13 AM
Re: Monitoring of the deletion of the files/directories on HP-UX
Have you considered using HP-UX Host Intrusion Detection System (HIDS) which can monitor for file/directory deletions, in addition to creation and modification of files/directories (and other detection capabilities)? It uses a kernel auditing component to monitor all deletions of files via system calls, which avoids the pitfalls of the approaches presented by others which can be easily circumvented. You can run HIDS in standard (non-trusted) mode.
It is available on software.hp.com (product J5083AA). Our next release will contain significant performance improvements. However, the current version might suffice for you depending on your system profile and HIDS configuration.
Pierre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 06:52 PM
05-05-2004 06:52 PM
Re: Monitoring of the deletion of the files/directories on HP-UX
Sorry for the late reply!
Thanks for the solution!
Your solution is perfect, it guarantees the security of the system without adulterating the nativity of HP-UX.
Following is the extract from the IDS release notes:
{
â ¢ As IDS/9000 continuously examines ongoing activity on a system, it seeks out
patterns that might suggest security breaches or misuses. The types of threats which
IDS/9000 counters include the following:
System Critical Unauthorized access
Privilege violations
Trojan horse
â Rootâ exploits
HP-UX OS Race condition
Buffer overflow
Password guessing
User security Failed logins
Failed SU attempts
User A modifying User Bâ s file
Files Modification of critical system files and directories
Creation of world writable files
Creating setuid files
File additions and deletions
}
Regds,
Ismail.
"No problem can stand the assault of sustain