VPS security issues
Usually it is seen that most of the attacks and exploits always use /tmp folder to work out of any propagate themselves. By mounting /tmp with noexec and nosuid (meaning executable cannot be run from /tmp nor with escalated privileges), hence this will stop many of these exploits from being able to do any harm for your server. You can also do it by adding following entry in “/etc/fstab”
none /tmp tmpfs nodev,nosuid,noexec 0 0
Once done save the file and reboot your VPS, now vps get mounted with “nosuid” and “noexec” hence you have secures your /tmp partition.
As a part of security you should also ‘turn off‘ daemons and services which you are not using. Any services that allows a connection to be established to your server is always used by hackers to gain access for your server hence to reduce security risks, you should disable all such unused services / daemons for security reasons.


























