Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rm trace

Status
Not open for further replies.

AIXFinder

IS-IT--Management
Jan 4, 2007
97
US
some keps removing /etc/filesystems

-rw-r--r-- 1 root system 0 Feb 22 23:00 filesystems

What is the best way to trace back who touched it?
 
I meant someone keeps removing /etc/filesystems..
 
The .sh_history file will catch the command used. The /var/adm/sulog will tell you which user has switched to root and when.

Benno

...it really does get worse than this !!
 
...forgot to ask but is it happening at different times or the same time ? if so it could be a dodgy script, check what is running at that time, the file looks like it's being overwritten with nothing
( cat /dev/null >/etc/filesystems )
( >/etc/filesystems )

Benno

...it really does get worse than this !!
 
You could set-up auditing, you could look through root's crontab, you could change root password and set up sudo for those FEW individuals that need a command or 2 to run as root (then make them tell you what commands so that you can config sudo and the person who says rm you can ask what directory they need it in) You could replace rm with a shell script the does (echo "the remove command is not functional please call AIXFinder") and then rename rm to remove :)

Hope you enjoyedthe serious and humorous suggestions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top