- Mastering Linux Security and Hardening
- Donald A. Tevault
- 321字
- 2021-07-02 19:19:26
Locking the root user account
The cloud is big business nowadays, and it's now quite common to rent a virtual private server from companies such as Rackspace, DigitalOcean, or Microsoft Azure. These can serve a variety of purposes, as follows:
- You can run your own website, where you install your own server software instead of letting a hosting service do it
- You can set up a web-based app for other people to access
- Recently, I saw a YouTube demo on a crypto-mining channel that showed how to set up a Proof of Stake master node on a rented virtual private server
One thing that these cloud services have in common is that when you first set up your account and the provider sets up a virtual machine for you, they'll have you log in to the root user account. (It even happens with Ubuntu, even though the root account is disabled on a local installation of Ubuntu.)
I know that there are some folk who just keep logging in to the root account of these cloud-based servers and think nothing of it, but that's really a horrible idea. There are botnets, such as the Hail Mary botnet, that continuously scan the internet for servers that have their Secure Shell port exposed to the internet. When the botnets find one, they'll do a brute-force password attack against the root user account of that server. And yes, the botnets sometimes are successful in breaking in, especially if the root account is set with a weak password.
So, the first thing that you want to do when you set up a cloud-based server is to create a normal user account for yourself and set it up with full sudo privileges. Then, log out of the root user account, log into your new account, and do the following:
sudo passwd -l root
I mean, really, why take the chance of getting your root account compromised?
- Extending Symfony2 Web Application Framework
- 信息安全導(dǎo)論(在線實(shí)驗(yàn)+在線自測)
- Web漏洞分析與防范實(shí)戰(zhàn):卷1
- Metasploit Penetration Testing Cookbook(Second Edition)
- 黑客攻防技巧
- 開發(fā)者的Web安全戒律:真實(shí)威脅與防御實(shí)踐
- 學(xué)電腦安全與病毒防范
- Advanced Penetration Testing for Highly:Secured Environments(Second Edition)
- 情報(bào)驅(qū)動(dòng)應(yīng)急響應(yīng)
- 信息安全工程與實(shí)踐
- CTF快速上手:PicoCTF真題解析(Web篇)
- 計(jì)算機(jī)網(wǎng)絡(luò)安全實(shí)驗(yàn)指導(dǎo)
- 社會(huì)工程:防范釣魚欺詐(卷3)
- 企業(yè)安全建設(shè)入門:基于開源軟件打造企業(yè)網(wǎng)絡(luò)安全
- 大中型網(wǎng)絡(luò)入侵要案直擊與防御