header bg

Scan QR code or get instant email to install app

Question:

Which of the following is NOT a good way to avoid viruses/malware in a Linux system?

A Only use eight-character alphanumeric passwords.
explanation

Passwords of eight characters are simply too easy to crack. More complicated passwords should always be necessary, whether on a Windows or Linux system. Other methods are available to keep malware and viruses out. First and foremost, there are a lot of people looking at Linux code, which means there are a lot of people who can spot and fix a weakness that viruses and hackers can exploit. The user and system are more segregated under Linux. If malware infects a user, it will only have access to the user account's files and directories, not to system files and folders. This means that if you need to perform commands as root, you should use sudo instead of su whenever possible. sudo executes only that command as root, but su launches an entirely new shell as root, making it more vulnerable to attack. When you log in as root, the entire system is vulnerable. Also, hackers are aware that root is the system administrator's default username, so create a new user and disable root so that a hacker must guess not only the password but also the username. Installing an antivirus application and keeping it up to date is always a smart idea. Other Linux security precautions include configuring a firewall to restrict traffic on unused ports, keeping the Linux packages and kernel up to date, removing any software that is no longer in use, and making the /boot directory read-only so that it cannot be modified. In addition to having complex passwords, make users change them on a regular basis and not reuse passwords. You should also keep an eye out for failed login attempts and lock accounts after a certain number of failed logins. Email can be encrypted, and users can be warned about the risks of opening email from unknown sources.

Related Information