What’s wrong with always being root?
Every one who works with Linux has heard the phrase, “Don’t login as root user”. Some of us ask many questions as to why this is the case? Why can’t I just login as root? Why should you avoid root and create a sudo account to use for administrative tasks? Let’s explain it here to see whether you can be convinced as well:
1. Running as root, mistakes become more costly and painful. When you make a blunder – a typo or something, and run a dangerous command as root, the damage is done. The unforgiving Linux won’t even ask if you are sure you want to do what you are doing. You’ll just run the mistake with full power. If you used a non-root user, you may be prompted to enter more things like a password. This additional mental engagement may be the difference between a hazard and smooth operations. And trust me, this mistakes do happen – sooner or later.
2. If you run a program as root you are at risk of handing a faulty program or malicious code full power to damage your system. If someone gets you to run/compile a malicious code as root in your server, the damage that results is catastrophic. Also, should a program have a bug, say a miscoding allows it to erase the entire /etc folder and you have it running as root, you will simply clear the /etc folder – which is probably the most important directory in the Linux file system.
Get a .co.ke domain from KSh 299
Search for your business name to see which extensions are available.
First-year price for eligible registrations.
- 500+ domain extensions
- Low registration and renewal prices
- One-click push to Cloudflare
3. Also, there is the concern of root being a very common user name. This makes it an obvious and easy target for brute force attacks. Having a server accessed using alternative username provides a bit of additional security. Instead of giving the attacker an easier time to guess the password only, you can make his work harder by choosing a different login username as well.
Basically, not logging in as root is an added layer of protection in your system. A protection against attackers and against yourself.
Start With This
Best value compares each plan's lowest monthly equivalent; contract lengths can differ.
WebHosting Starter
Kshs 188/mo
Kshs 6,768 billed every 3 yearsSave KES 11,232
Renews at Kshs 188/month
- Hosts 10 Websites
- WordPress Hosting & other CMS
- ~25 000 visits monthly
- Free Website Migrations
- 30 GiB SSD Storage
- 1-click Installer
- Free automated SSL
- Unlimited bandwidth
- Unlimited Email Accounts
- Free Daily backups
- Free Website Builder
- Free Website Templates
- Python and NodeJS Support
- Shared IP Address
- Powered by Cpanel
Explore web hosting
Compare hosting options for your website when you’re ready.
See plans and pricing
Domain SearchInstantly check and register your preferred domain name
Web Hosting
cPanel HostingHosting powered by cPanel (Most user friendly)
WordPress HostingHost your WordPress website with fast, secure, and affordable WordPress hosting in Kenya.
KE Domains
Reseller HostingStart your own hosting business without tech hustles
Windows HostingOptimized for Windows-based applications and sites.
Free Domain
Affiliate ProgramEarn commissions by referring customers to our platforms
Free HostingTest our SSD Hosting for free, for life (1GB storage)
Domain TransferMove your domain to us with zero downtime and full control
All DomainsBrowse and register domain extensions from around the world
.Com Domain
WhoisLook up domain ownership, expiry dates, and registrar information
VPS Hosting
Managed VPSNon techy? Opt for fully managed VPS server
Dedicated ServersEnjoy unmatched power and control with your own physical server.