Skip to main content

Posts

Showing posts with the label Security

Folder is hidden & hidden check mark is disabled

Due to virus attack or something, the folders in a pen drive might become hidden. The folders are still hidden even after cleaning the virus. Even if you right click the folder and check its properties to unhide the folders but the hidden option is disabled and unable to unhide the folders by this method. Use the following option in your CMD. attrib -s -h folder name (for a single folder) attrib -s -h /s /d (for all the directories including the sub directories)

Install Clamav Antivirus

Before you start installing Clamav Antivirus in your Linux box, please add the extra repository for yum. Install Dag repository, and how to install, go to my post Add Repository for yum . yum - -enablerepo=dag install clamav -y After installing there is few changed needed in configuration file. vim /etc/freshclam.conf #locate the line below and comment it #NotifyClamd /etc/clamd.conf Now update the clamd and its virus defination #freshclam To scan for Virus #clamscan - -infected - -remove - -recursive eg. #clamscan - -infected - -remove - -recursive /home

Fail2ban - Block attacks

Your server is venerable to attacks, and you have to time and again monitor. After monitoring you have to block the attackers IP’s. Use Fail2ban package, which would ease you a bit. To install Fail2ban you need to add extra 3rd party repositories - Extra Package for Enterprise Linux (EPEL). After that you can use yum to install the package. How to install addition repositories for your linux box ( Add Repository ) yum install fail2ban