Portal Home > Knowledgebase > Articles Database > Remove all log
Remove all log
Posted by mixmox, 09-16-2013, 01:25 AM |
hello i need to remove all log about login and history details on centos 5 machine to prevent any access log
which file should i edit to remove los?
|
Posted by RoseHosting, 09-16-2013, 02:54 AM |
It is not a good idea to remove these logs, but anyhow, you can clear
which should do it. If you want to clear all log files and shell history you can do:
|
Posted by zoid, 09-16-2013, 03:19 AM |
Access logs of what type
|
Posted by Mayur-strad, 09-16-2013, 06:29 AM |
if you want to delete history you can delete it by /root/.bash_history
history -c
or try this:-
cat /dev/null > /var/log/messages
cat /dev/null > /var/log/wtmp
cat /dev/null > /var/log/maillog
|
Posted by mixmox, 09-16-2013, 08:33 AM |
i want to know what hacker do to hide themselves after got access to server
|
Posted by zoid, 09-16-2013, 09:22 AM |
In that case the best thing to do is to set up the machine from scratch.
|
Add to Favourites Print this Article
Also Read
New Reseller (Views: 635)
Servage (Views: 896)