Running as Root: It’s really NOT Okay.

LinuxBrainDump.org has an article on the 10 Linux Commandments.  The most controversial of these is “Thou shalt not log in as root”.  I’d like to take a moment to point out some of the flaws in the belief that it’s okay to run as root — as well as some of the risks you face by running as root.

  1. Being compromised as a non-root user still leaves your data vulnerable.  This is completely TRUE.  Your data is vulnerable either way.  Your data is your most valuable asset: OSs can be reinstalled, data cannot.  This is why we have DVD+Rs, Backup Drives, etc.  Use them: they protect you against attackers, stolen computers, hard drive failures, and (done properly) fires, tornadoes, and floods.  Amazing technology.
  2. A user can still send spam mail and other annoyances.  This is true as well.  Unless you have a high security system where no users can have executables (i.e., a noexec /tmp and /home) any user can bring in an executable and run it.
  3. Most home computers are single user machines.  Probably not anymore.  I know my girlfriend has an account on my machines.  Other people I know have been granted guest accounts, and I’ve got multiple accounts for testing things.  Root would have access to all of this, a normal user only to their own account.
  4. It’s no worse to be compromised as root than as a user.  Completely false.  An attacker with root can cover their tracks much better than a user.  A root attacker can create new accounts, modify system binaries, and otherwise damage much more of the system.  And, of course, they can do all of the above.  An attacker with root can also craft custom packets to exploit other systems on your LAN.  Also, a root attacker could run a packet sniffer on your network and read traffic.  A compromise is bad, root access is a nightmare.

Long story short: it still makes sense not to run as root.  Mac OS X, Linux, and Unix have always run this way.  Windows Vista has even moved away from users being given administrative privileges by default.  “Allow or deny?” was not added because it looks cool: running as a non-privileged user is REALLY better.  Don’t be fooled into thinking it’s okay because it’s only a workstation: security is important everywhere, especially around your data.

Advertisements

2 Responses to Running as Root: It’s really NOT Okay.

  1. Ryan Neufeld says:

    Great post man! Saved me the trouble of posting it my self 😛

  2. Alex says:

    Nice article. It’s good to have all of these reasons explained.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: