Yesterday, land0 rapped me on the knuckles for expressing the thought that any sizeable chunk of humanity could simultaneously be smart enough to run Linux, and dumb enough to use root for personal login.
To the Nix (aka, *nix, BSD, Linux, Unix) world, this is like giving a crook the keys to your office, along with a moving van.
The thing is, my company supports a line of single-function network appliances, many of which go into small businesses and schools. We’ve helped this community for years. And I constantly hear stories over the partition.
Better than that, my tech support manager saw my knuckles get wrapped, too. When he stopped laughing, he gave me the number for one of our more talkative customers, and suggested that I give him a buzz.
Only the name and location have been changed to protect our relationship… Let’s call him Kurt of New Orleans. Apologies to Kurt in advance for any phrases that were not perfectly captured. He talked too fast, and I’m a lousy secretary.
Warning: VIOLENTLY DISTURBING CONTENT. If you continue, you will be exposed to material not suitable for anyone with formal… or even informal… Linux training.
There are over ten million businesses in America that support fewer than 20 employees, each. Many are start-ups or otherwise minimally capitalized, and Linux fills a networking need without straining the budget… especially when they don’t bother hiring professional help.
Kurt manages the office for one of them.
EB: Do you ever login as root?
Kurt: I always login as root. Linux is not my desktop operating system. I don’t use it to read email, browse the web, or instant message my pals. I run a web server, an email server and an ftp server in Linux. So the only time I log on to the system is when I need to administer my servers or install software, which I can only do as root.
EB: Have you ever tried sudo?
Kurt: I don’t do it. It’s too much of a hassle to be switching privileges back and forth. I just pay attention to the commands I’m entering, and pray for the best. So far so good, knock on wood.
EB: Do you ever neglect to log out?
Kurt: All the time. There are only a few people with access to our server room, so we tend to leave our systems logged on. But all of our systems are behind firewalls, so they’re safe.
EB: Have you had occasion to bypass Linux security, like for installation?
Kurt: When installing new software, you almost always have to change permissions on certain files, but it’s easiest to do that as root, too.
EB: Have you ever forgotten to change permissions back after an install?
Kurt: If I did, I don’t remember. I’d never do anything like that intentionally.
I’m as secure as I can figure out how to be, while still taking care of my real job responsibilities on any given day.
As far as I know, my network’s not “owned” by anyone. Until I find out, I’m not going to do anything about it.
EB: How do you feel when people tell you that you shouldn’t log in as root?
Kurt: I shouldn’t exceed the speed limit, either. But I get things done a he** of a lot faster when I do. I’ve got things to do.
EB: What caused you to go to Linux in the first place?
Kurt: Security. IIS is notoriously insecure, so we wanted to switch web servers. So is Exchange. If I’m going to be a half-a** network manager, I’d rather start off with an operating system that’s already reasonably secure. The amount of enterprise-class software we’ve been able to use is incredible, and you just can’t get that in the Microsoft world.
EB: So are you telling me price had nothing to do with it?
Kurt: OK. Security… and price.
EB: How do you manage vulnerability patching and upgrading?
Kurt: I stay as much on top of it as I can. I recently upgraded Apache and several other programs.
EB: Do you use any software that keeps you up-to-date or alerts you?
Kurt: I just pay attention to security sites, and keep the box firewalled off as much as possible.
EB: Would you say your updating is casual?
Kurt: When I’m made aware of a problem, I generally try and fix it.
EB: What kind of administrative training have you gone through?
Kurt: Bootstrapping. I am self-taught. I own almost the whole O’Reilly library. I spend a lot of time digging through message boards when a problem does come up.
EB: So you have no formal training. What made you think you could do this?
Kurt: I’m in a small business. I’ve never let lack of formal training stop me from anything. When a problem needs to be solved, I learn how to solve it. That’s how I was brought up.
EB: Thanks for your time.
Back to Earth…
We have plenty of customers like Kurt running Linux, Windows, and even… no. I don’t believe we have any Kurts riding BSD.
If you think we’re alone, cruise the forums, where you regularly see questions like: “since I connect through a router, do I really need firestarter (firewall) and clamav (anti-virus scanner)?”
As if that’s not bad enough, the world is littered with devices like the old Cisco 675 routers that let DSL users, who have no concept of CBOS/Nix, login as root.
My crew runs into this stuff every day.
So forgive me if I portray a grittier side of the world than those who are certain that all Linux admins play by the rules. I can’t help it.
I’ve run across too many managers who picked up Nix at Barnes and Noble… taped to the outside of a magazine.
If you have any advice for Kurt… Please. Keep it civil. I have a delete button, and I know how to use it.

54 comments
Comments feed for this article
August 11th, 2006 at 7:48 pm
Pingback from Creative Title Here » You Do WHAT as root?
January 23rd, 2007 at 9:49 am
Pingback from Confessions of a Real-World Linux Admin: “I Always Login As Root.” | nixCraft
August 10th, 2006 at 7:36 pm
ATyrell
hatred to admit it, this sound like me:(
August 10th, 2006 at 7:54 pm
Mike
I am writing this on my SUSE desktop at home. I can’t remember the last time I logged in as root. If I need to install or change something, I just select the appropriate item from control panel or YAST. YAST will ask for my root password, and I can make changes as root while still logged in as a limited privilege account. The key, of course, is that I have to provide my root password to make the change. If I need to use a console, SUSE has a handy SU console.
Most linux distros require (or strongly suggest) setting up a limited privleged account for daily use (Linspire, are you listening?). SUSE goes so far as to set the default wallpaper on roots desktop to be bright red with pictures of bombs and hazard signs on it, just in case anyone misses the point.
Whether or not all admins use it, it is much easier to run a *nix with limited accounts than any Windows system.
August 10th, 2006 at 8:13 pm
Lawrence D’Oliveiro
Entering your root password into YaST breaks the rule of never running any GUI stuff as root. GUI toolkits are just too complex to offer any kind of assurance against buffer overflows and other kinds of vulnerabilities.
The only safe way to do stuff that needs root access is from the command line.
August 10th, 2006 at 9:31 pm
Mike
I’ve had plenty of core dumps (buffer overflows) when running utilities from a command prompt. Anyone of these can be a vulnerability, just like a gui, if you working with anything downloaded from the internet. I use YasT (whether GUI or command line, ive used both) to configure my system like windows control panel or install updates from SUSE. I never surf the internet with root privileges, even to trusted sites like amazon or google.
The bottom line concerning the internet:
As Fox Mulder would say, “Trust no one”.
Just because you are paranoid doesn’t mean there aren’t people out to get you
Never access the internet with root or admin privileges, not even google. Someone can craft an html string which appears in the google search results and causes a buffer overflow.
Run all webservers and databases as limited user accounts. Never run them as root
Never store any personal or sensitive information on a Windows system that is connected to the internet. It is just too vulnerable.
Did I mention, “trust no one”?
August 11th, 2006 at 3:02 am
land0
Hello BJ Gillette,
“Yesterday, land0 wrapped me on the knuckles…
Before I get started let me just hide the ruler …
However I am glad to hear that your boss got a laugh out of what I wrote.(even if he was laughing at me.) What I wrote was meant to be exaggerated and some what satirical while attempting to prove a simple point and maybe make some people think.
Since it seems like I missed the mark I will try, try again.
Lets say that all people who are SysAdmins of medium size businesses that run as the root user continually are named “Kurt”(you were expecting “Dick” huh? ).
It used to be that before “boss man”(who we will refer to as BM) brought the Nix system into the mix that Kurt was free of blame for security breaches, crashes, blue screens(BS) and fill in the blank_______ . It was the faulty defaults of M$(broad strokes here).
So the BM wants Nix he wants to reduce the stress for the whole company.
Besides the fact that all of his toastmaster buddies say they have had next to no problems after making the switch to Nix.(catchy huh?)
The security of the system is now Kurt’s responsibility there is no more M$ crutch. If the network goes down more often than the BM’s toastmaster buddies he will figure it out. It could even be after a couple of real FU’s Kurt will no longer do Kurt things and log in as root all the time. He may even go to KA meetings.
“Hello my name is __________ and I used to be a Kurt.”
“Hello,__________.”
“I have not used root for my login for 6 months because unemployment sucks.”
August 11th, 2006 at 8:40 am
BJ Gillette
Hi land0.
You didn’t miss the mark at all. Your insight was received in the spirit it was given… and enjoyed. We’re all on the same page.
My tech support guy was laughing ironically. As in, “You gotta get to the point you recognize that you have a problem before you decide you’re gonna do something about it.”
Few of the transgressors have reached that step. Even worse, many don’t know they’re using Nix at all. They just wanted to add a cheap mail server… or get to the Internet… or add an external hard drive… or give the kid an MP3 player… or extend their wireless… or add a firewall… or, well, you get my drift.
In that world, giving root access to helpless users who a) never read manuals; and b) have no idea they are buying a hand grenade with the pin half-pulled, is stinkin thinkin.
I’ve been wanting to go after that tired meme that, by virtue of using Nix, old habits are shed and people reach a new and higher plane of existence.
You just gave me an easy intro, so I could bring folks up to speed on our discussion without having to rehash it. (<– Cheezy writing trick)
August 11th, 2006 at 8:55 am
B Lewis
EB, the Kurt story is only disturbing to you because you’re clueless.
If *I* were to always run as root, that would be stupid of *me* because Linux *is* my desktop. I do many things that don’t require root privileges.
As Kurt explained to you at the start, Linux is not his desktop. Kurt is not stupid. Everything Kurt does requires root privileges.
Root privileges are root privileges. Using sudo only buys you a little logging and slightly better password management. There are unavoidable risks involved with root privileges, and thinking that sudo will make them go away is ignorant.
If, as Kurt says, the server room is only accessible to a few people, who have the root password anyway, staying logged in is not a risk worth talking about. Especially since most businesses use computers where physical access can be used to get root access.
The most important thing Kurt should do security-wise is keep up with security updates to his web, email and ftp server software. The logging in as root issue is a trivial issue given the circumstances he described.
For other circumstances, e.g. desktop Linux, it may interest you to know that Ubuntu’s install procedure configures sudo for the user, so one would have to try extra hard to get into a situation of constantly logging in as root.
August 11th, 2006 at 9:31 am
BJ Gillette
Hi B Lewis.
I attempted to give a full picture of a Linux admin… the kind we see at my shop every day… as opposed to the perfect security professionals that claim to be aghast at the very thought that anybody would use root as their personal login.
This springs from our earlier discussion on EB of 64-bit rootkit prototypes, Blue Pill and Vitriol, that show the way to taking over computers running any operating system, at the chip level. They require SuperUser access to do it.
Kurt’s an intelligent, normal guy just trying to keep his network running reasonably well. Believe me, we see much, much worse.
As for Ubuntu… I’m distie-agnostic. Last time I checked, we were running Fedora, FreeBSD, Red Hat, Slackware, and SuSE, along with a fleet of Windows cruisers. I haven’t gotten around to trying Ubuntu, but I’ve heard lots of good things.
Clueless? Grrrr… Sorry, I’m used to guys like land0 who don’t need to call names to make their point. That opening insult almost made the rest of your post… which has valid points… invisible.
August 11th, 2006 at 9:40 am
harry
I’ve run as root on my personal machine for ages now. Su and sudo are basically a major pain when it comes to developing software which hasn’t quite got it’s security together adaquately to run properly as a normal user (or relies on other bits of software which hasn’t got it’s security together adaquately!).
There’s also the other side of the coin: running as a normal user and believeing your machine is the *most* secure thing in the universe can lead you into fairly reckless behaviour like visiting pron, trog, shareware and warez sites (if you visit pron, trog shareware and warez sites, then you may as well *assume* you’re machine will be 0wn3d regularly and can live with it being trashed).
And if you’re not confident enough to live with mistyping CLI commands, then you shouldn’t ever ride your bicylce without those extra wheels or go swimming without those armbands.
And having a backup up is a total must have even if you run as a normal user.
For administering servers, root login is a must have and if you’re developing a server app, being logged in as root for long periods is normally required. And being logged in as root on a production machine is even more fun!
Yes, the Manual says you shouldn’t muck about with production machines “live”, yes the manual says you shouldn’t log in as root unless you really need to, but until the day you experience something like having to exceeed the speed limit to *avoid* a major road accident, you’ll won’t realise the Manual is written as a *general* guide for best practice but there are many instances that the Manual just doesn’t cover.
Most often it’s the “the boss needs this yesterday” condition that they don’t cover.
Finger pointing and sneering at admins who login as root is fairly childish in my book.
And is generally the attitude of newbies who setup servers that get 0wn3d fairly soon after going online because they lack experience.
I know a couple of people who think I’m mad logging in as root but then they’ve never been sysadmins running multiple servers. And they probably drive at 40 in built up areas and but only do 50 on a motorway.
I’ve used Linux now for about 8 years and never seen a sucessful penetration of any machine under my wings. But know that I’ve just said that, I’ll probably find one of machines has been zombie for about 7 years !
August 11th, 2006 at 9:44 am
REd
ok well this dude is too lazy to use or even configure sudo then he deserves the insults. I am not suggesting that he become a perfect security professional but his laziness and uncooperative apathetic security practice is contagious for those admiring subordinates who he might work with. So next time your speeding down the interstate and I pull in behind to follow you, please please slam on your breaks so that I will learn not to do like you do.
August 11th, 2006 at 11:50 am
Sam
Hey, I’m the Kurt running FreeBSD. =)
Sometimes it seems to me that more mature, old-school linux/unix users are a little “elite” and so there’s a dead area in the learning curve. The “For Dummies” style stuff get’s you started, and you learn all this cool stuff and continue to teach yourself, but the gap between there and becoming a security minded, uber admin is little documented, no-man’s land.
August 11th, 2006 at 12:00 pm
Kai MacTane
Much like Kurt, I run Linux as a server, not as my desktop. There’s no point in my logging in as any other user than root; every time I log in, it’s because I’m going to tweak the Apache config, adjust SpamAssassin rules, or whatver else.
Use some GUI control panel? Sorry, I’m logged in via SSH. This is what the command line is *for*.
There would be absolutely no point in setting up sudo, because that would just force me to type “sudo” in front of every command. (And the commands would *still* be run as root, because *they need to be*.)
People are misunderstanding the advice about logging in as root. It’s not “never log in as root, ever” - if that were the case, we could just get rid of the root account altogether, right? It’s “never log in as root *unless you NEED to*.” And system administrators need to.
August 11th, 2006 at 12:11 pm
dblood
I log in as root all the time (servers only, I don’t use it as a desktop). Most everything I do requires root. I don’t run x-windows or even have it installed on the system. Using sudo for every command and typing in the password many times seems less secure to me.
As for accessing the internet from it, of course I do. There is SCP, dig, tracert, nmap, etc. I suposed that I could run most of those as a limited user having to switch between root and my account seems pointless.
My services are setup secured; chrooted and limited users where possible.
root is there for administration, so use it for that. if you think using sudo will protect you from some of the programs you are running, why are you running them? Please, take a class, read a book, and learn what the commands you run do.
August 11th, 2006 at 12:15 pm
land0
BJ Gillette
“You didn’t miss the mark at all. Your insight was received in the spirit it was given… and enjoyed. We’re all on the same page.”
Thank you for clarifying. I just wanted to make sure that was the case. I bet your tech support guy was surprised to find out that he is your boss now! hehe
“You just gave me an easy intro, so I could bring folks up to speed on our discussion without having to rehash it. ( Cheezy writing trick)”
Good thing I rehashed it… doh! lol
As for the comments referring to security minded people with derogatory remarks. There are very good reasons why you should not use the root account as your own personal login.
There is an illustration often used by those guilty of not following guidelines.
“There is a speed limit but that does not stop anyone from speeding now does it.”
I propose that using the root user as your login on a Nix system is more like not wearing your seat belt. All of us are all speeding down the road of the super computer highway it is inevitable that you will be crashed into. In the end it is the safety equipment you use that determine if your network has a better chance of living through it. In a multiple machine network you will be responsible for the multiple machine pile up that happens as a result of your negligence and the money it costs not to mention the loss of trust from the one who signs your checks.
Buckle up we care.
August 11th, 2006 at 12:51 pm
rootloger
Well on a counter note by adding an additional user to logon that gives an would be attacker one more target to try and penentrate. Just another account with another password that can be penetrated. As stated an many linux security books you should only have accounts that you absolutely need.
So if someone logs in as root every 3 months to do maintainence on their server and that requires root privileges I don’t how thats a bad thing. Your basically saying “don’t use the root account for what its for.”
Explain to me how typing sudo before each command suddenly just made your box a fortress.
sudo rm -rf /*
Also by typing the root password over and over each time you use sudo increases the likely hood that you type it in the shell on accident and save it in your history file. Or it make it easier to identify with a keylogger. Or how about this outlandish one, your keys will wear out the attacker will know what keys to push!! We can get as paranoid as we want.
Lame article, while I completly agree with the workstation, I think this really is just someone trying to feel smarter than others. While I agree you should at least log out as root when your finished, it should be noted that you have no security without physical security.
So if you want to be secure, unplug your computer and just memorize everything in life. Until they invent a machine that can read minds, you will be safe.
Now if you want to truly add some value in the article explain what major security holes logging in as root to do root activities creates compared to using sudo.
August 11th, 2006 at 1:30 pm
BJ Gillette
@Kai, dblood, rootloger et al.
The post demonstrates how a real Linux admin with other duties runs his network. It is part of a larger discussion about… oh for cryin out loud, follow the link to the rootkit post.
If I had too much fun with it for your taste, too bad. Good natured humor never ever works with zealots. I enjoyed posting the story, and Kurt got a good laugh.
RE: “…add some value in the article explain what major security holes logging in as root to do root activities creates compared to using sudo.”
The post already ran too long for the blog format. I’ll run stories on root security holes in the future.
Contributions from folks who can express themselves without putting readers to sleep are welcome. You needn’t agree with the host. (Are you listening, land0, harry and Mike?)
August 11th, 2006 at 1:31 pm
B Lewis
BJ Gilette:
This article bills itself as a horror story and derides Kurt’s behavior, when Kurt isn’t doing anything unreasonable. I would not call names if it weren’t for the “I’m smarter than Kurt” attitude throughout the article and in many of the comments. If you didn’t understand Kurt’s answers to your questions, you should have asked follow-up questions, not written a derogatory article to show off your ignorance.
I don’t generally go around calling names when people are ignorant, except when their ignorance leads them to think they’re smarter than others. Hopefully the candor from me, Kai MacTane, dblood and rootloger will help your quality control on future postings.
rootloger:
With sudo you type your own password, not the root password.
In Kurt’s organization, using sudo would eliminate the need to coordinate a root password change when an admin leaves, but that may not be a big issue depending on the organization.
Using sudo would also help them have logs of who did what. Again, that may not be a big deal depending on the organization.
August 11th, 2006 at 1:46 pm
BJ Gillette
Gee B Lewis…
I asked Kurt if he used sudo simply to get a feel for the tools he uses.
Once again, here was the exchange, word for word:
EB: Have you ever tried sudo?
Kurt: I don’t do it. It’s too much of a hassle to be switching privileges back and forth. I just pay attention to the commands I’m entering, and pray for the best. So far so good, knock on wood.
I do not know how you deployed that innocent question to tie yourself into such knots. What I do know is that I cannot help you untangle yourself.
Between your lack of humor and zealotry, you are beginning to try my patience. No more of this “ignorance” stuff. If you want to call the host names, do it on your site.
And for the record… I am not smarter than Kurt. For cryin’ out loud, he’s a customer. (Did you read that, Kurt?)
August 11th, 2006 at 1:47 pm
Mick
B Lewis:
You’re a dumba**.
August 11th, 2006 at 1:56 pm
Tasker
B Lewis,
Contrary to your portrayal, the article seems quite sensitive to the busy admin. I see a lot of questions/answers, but little commentary. Why the sensitivity? Have a Coke and a smile…
We all know that abusing the root account isn’t necessarily best practice, but we do it anyway. Why? Because it’s easier, plain and simple.
- T
August 11th, 2006 at 2:29 pm
land0
BJ Gillette
All I have to add is thanks for the interesting and enlightening article and your banter, you have gained a new reader here.
August 11th, 2006 at 2:40 pm
BJ Gillette
Hi Tasker.
RE: We all know that abusing the root account isn’t necessarily best practice, but we do it anyway. Why? Because it’s easier, plain and simple.
Well said. Bravo!
Kurt represents the top of the bell curve that we see. To the left are admins who do a lot less. To the right, admins that do a lot more. But I’m guessing even the toughest security guru does some Kurtish administrating, now and again.
Thank you thank you thank you thank yew.
——–
Hi land0,
It’s mutual. I hope to see a lot more of your output… And I wasn’t kidding about the invitation to contribute. Think about all the bennies. You get a by line, a plug for your organization at the bottom of the article, and everything!
August 11th, 2006 at 3:55 pm
me
I admit I don’t get the sudo thing. You can do root commands with a regular user’s password. So… all they need is your password to do root things? How is that more secure than having to login as yourself, then having to su to root with the root password? Until someone comes up with a reasonable explanation, I’ll keep using ’su root’ when I have to do root things. Then again, it’s not for a business. If I got hacked, it wouldn’t be too devastating (but it has yet to happen).
August 11th, 2006 at 4:06 pm
Chris
His root usage doesn’t sound too bad. I’ve been using Linux since 1997 and while I always login as a user on my desktop system, I often login as root on my servers. The real problem arises when you browser the web, irc etc… as root where vulnerabilities in whatever software you are running could mean someone dropping a root shell on your box.
August 11th, 2006 at 4:07 pm
Evan
I am see that some people do not really appreicate what sudo is for. Or how to best set it up. NEVER set sudo up with the root password. The main thing that sudo does (and by the way it’s biggest use is ’sudo su -’, so you only have to use it once) is give you a solid log of who did what. In the case of my critical servers at work NO ONE, NO ONE has the actual root password so that if root shows up as having logged in we know there is trouble. That being said, I do not expect everyone to follow that pracitce, hell I don’t follow it on all my servers.
Whata lot of the readers seem to miss is that Kurt is logged in as root not becuase he does not “get it” or has even really thought about if he should or not, but becuase he is just to damn busy to worry about security that _interferes_ with getting work done. That is the universal trade off and bane of security. How much are we willing to hassle with when we have to get something done? As an example, why isn’t openBSD the major web facing server? Becuase the security on features on the OS exceed the Kurt Hassle Threshold (not knocking openBSD, best security I know of, just a real bear for your harried Kurt to try and learn/setup/use with the BM riding his/her butt).
August 11th, 2006 at 4:44 pm
Evan
me-
a couple reasons for using sudo: first is logging, by forcing admin to use sudo I can tell how the last person to be root was, or the last person to be root be fore things went bad. Secodn reason to use sudo is to, in theory, make it harder to accidently cripple a box by deleting/modifing or other wise do doing bad things. Unlike ’su’ which could allow for keystroke login of the root password, sudo would only allow login of your password. Maybe not a great improvement in security, but again with the sudo logging you can tell who got compromised. Mind you most of the sudo benefits are found in a multi-admin setting.
Ubuntu makes good use of it by allowing only a normal user, to step up privileges only when needed. Does this require some smarts on the user’s part? Sure. In a case where you are teh only person on the box maybe you will get no advantge from sudo.
On my personal system I normally just use ’su’ for when I need elevate rights as the only person using the box is me. Using ’sudo’ does not give you much greater security , it does provide better auditing of what is happening on the system. It is improved auditing that makes sudo a recommened practice.
August 11th, 2006 at 5:05 pm
Joe Klemmer
I never logon as root. In fact, I don’t remember roots passwd. However…
I tend to do this when needing roots privileges -
$ sudo su -
I know, it’s no different than just loging in a root. But it doesn’t have the psychological stigma so it makes it easier for me to do it.
August 11th, 2006 at 6:17 pm
rootloger
Evan you backed up the use of sudo with some solid reasons why its a good idea.
Positives:
1. Monitor logs for root activity that you know would not be done by your users.
2. Multi admin situation.
Negatives:
More user names and passwords that have to be controled and protected.
To clarify what my mistake on my comment about typing the root password, you still are putting in the password to give root privleges for whatever command you are doing and the end result is the same. Imagine if you sudo with passwd.
I only use sudo on my ubuntu workstation besides that I either logon on as root or use su for servers, but thanks for your additional comments it will give me something to ponder.
With your comments this post finally has some value and I appriciate that.
August 11th, 2006 at 6:30 pm
smack
BJ Gillette I think you know the ‘what’ but you don’t fully understand the ‘why’. In this instance the ‘what’ is a security practice. If you understood the ‘why’ you’d know that there are specific exceptions to the ‘what’.
I don’t think your pedantic and somewhat dogmatic approach to security will get you in to trouble in this instance but in general it’s not good to think you know that which you do not know(socrates). I say this because while Kurt’s actions are a precise exception to the ‘what’, you disagree with him and call him dumb for it(if you can reason by syllogism anyways). I posit that this is because Kurt knows a little more about the ‘why’, althought it’s likely that he knows less about the ‘what’.
The precise exception here is when your are the sole admin of a server where you don’t need need to do any non root things logging in as root is ok.
August 11th, 2006 at 7:15 pm
adam
speaking as a liberal arts major who always logs in as root, it’s “rapped on the knuckles,” not “wrapped.”
(just kidding about the login part… god know, like most liberal arts majors, i don’t need admin privileges for my burger-flipping job.)
August 11th, 2006 at 7:35 pm
Stomfi
I suggest the author statrt a series of articles for the Kurts of this World letting them know how to think like a sys admin.
I expect one could use RUTE as the refernce material.
August 11th, 2006 at 8:31 pm
rootymcroot
Ok so the guy sounds completely logical. And how does not running as root all the time protect against exploits against programs from the internet? that makes no sense.
i also admin some linux boxes and always run as root. like im going to type my password in everytime i want to restart a service or edit a config file.
as far as i can tell, the perils of running root are
1) typos
2) running untrusted scripts
neither of which i do. I think it comes from the mindset that some cluseless luser will accidently type rm -rf / like all the jokes say and then own a multi user box. Thus the fear of root was beaten into peoples heads. Its like the urban legend that you have to wait after eating before swimming. its a psychological fear not a real one.
August 11th, 2006 at 8:34 pm
rootymcroot
That should read “against programs downloaded and installed from the net” the meaning being that your not going to go around knowingly running code from a disreputable source, so you would have to eventually log in as root to get it installed anyway.
August 11th, 2006 at 8:37 pm
BJ Gillette
@smack, stomfi:
Sigh. Since you haven’t bothered reading all the comments, or followed the links to understand the context of the article, I can’t help you. But I gotta tell you… I sure am getting tired of being called a know-it-all by a limited number of snotty know-it-alls who don’t get it. Perhaps if you handed the post to someone who has a sense of humor they might be able to help you. OK. I’ll go this far… you can tell a person has a sense of humor if the corners of their lips are turned up quite often… not snarling, mind you. We call it… how should I put this… “smiling.” If that doesn’t work, these people might help.
When you come up for air, maybe you’ll figure out that I’m not a know-it-all so much as a smart aleck. Know-it-alls work for me.
——-
Hi adam.
Doggone it, you nailed me. (red face, gnashing teeth) Thanks a million for the correction.
August 11th, 2006 at 9:51 pm
Six
Funny … I have been doing this for about 20yrs now in one fashion or another - long before there was a such thing as formal training. There were no schools other than a computer science course at a university. Even the government (FBI) was hiring all the hackers they could find just to put a security team in place.
Flash forward 20 yrs - now there are nothing but schools and training. Suddenly your a putz if you don’t have training? Who taught your Instructor? … who taught him? - etc …
Eventually you get to a guy that didn’t get any formal training and taught himself - correct?
August 11th, 2006 at 10:32 pm
BJ Gillette
Hi Six.
My goodness. Till now, I thought I had seen every stripe of misunderstanding of this post… Sadly, all the other misunderstanders slipped on the same banana peel.
You, my friend, have discovered a fresh way to be offended by my work. For that, I am grateful.
What can I say? As a self-taught TRS-DOS > CP/M > Unishell > MS-DOS > Artisoft > Novell > Windows > Linux > BSD guy, I’m astounded. For details I don’t know or understand, I ask my in-house know-it-alls. When they don’t know, I ask my many friends in the industry, check the forums, hit the books, punt, do it wrong and pray, or do something else. How different is that from you?
Kurt had fun, I had fun, several readers get it and a few don’t. I get the distinct impression that those of you who don’t are new ’round these parts.
Please re-read any portions of the post that originally caused you distress with your tongue planted firmly in your cheek.
August 11th, 2006 at 11:16 pm
smack
BJ Gillete,
I got linked here from reddit so I’m not familiar with your articles. Also, with what I generally read I don’t expect technical articles to be satirical.
As I understand it now after rereading, it seems to me that you think what Kurt does is ok and that land0 is the pedantic one?
August 12th, 2006 at 12:32 am
BJ Gillette
Hi smack.
Since you’re open-minded, I’ll share the secret message, but only as long as you promise not to tell anyone else.
Linux folk take themselves too seriously. Many think that, by selecting an non-win OS they are automatically smarter, better looking, more enjoyable and even smell better.
“And by the way,” each says, “Do it my way, or you’re ignorant, an idiot, a miscreant and an all around unpleasant person to be around.”
Did I mention that they eat their young? Never do a banquet between a Red Hatter and an ubunter… or SuSer… or Debianfreak. You’ll gouge your own eyeballs out.
If you read land0 carefully, both on this post and the earlier rootkit post, you’ll see that his message is, “I know you won’t always drive carefully, but you’re better off if you know the rules of the road, so you know when you’re breaking them and why.”
That rootkit post is essential to “getting” this one, because after I wrote about rootkits that dig in at the chip level where the OS can’t see them, someone took me to task for not mentioning that the current prototypes require SuperUser access. Some commenters even expressed disbelief that any Linux user on earth would use root for personal login.
That’s where Kurt came in. He’s Exhibit A for Linux admins doing the nasty. But in my world, Kurt’s an average Linux guy. He has a real job and he knows more about networks than the other folks in his shop, so they pinned the Linux tail on him.
Kurt feels he’s doing all he can within the time and inclination he has available. He’s nowhere near perfect, and he knows it. And his answer is, “If you want a guru, hire one.” Of course, the small biz he works for feels it cannot.
Back to the secret message. Here it is: “When single function enterprise, ISP and consultant types preach fire-and-brimstone to multi-function operators, it wears thin real fast.”
Ohmigosh. Waitaminnit.
So that’s why you guys didn’t get it. You thought we were just talking about Linux.
Sorry. I’m a Hemingway fan. (I’m big on multi-level messages.)
That holier than thou garbage goes way past Linux. But Linux has somehow attracted more than its share.
Back to Kurt and land0… So between Kurt and land0, who’s pedantic? Nobody. Each is operating as correctly as that individual feels is practicable, within the knowledgebase and environment presented.
Now remember, smack. You’ve been sworn to secrecy. If you rat me out, you’ll ruin millions of sanctimonious tards’ days… along with my fun as a smart aleck.
One last hint… Next time you see something like this in an article: “Warning: VIOLENTLY DISTURBING CONTENT. If you continue, you will be exposed to material not suitable for anyone with formal… or even informal… Linux training,” you can freely assume that, like Toto, you’re not in Kansas anymore.
Shhhh.
August 12th, 2006 at 9:21 am
BJ Gillette
Hi smack (2).
I ran at of gas at 12:30 last night, and forgot to give you the second part of the secret message.
Secret message, Part 1: “When single function enterprise, ISP and consultant types preach fire-and-brimstone to multi-function operators, it wears thin real fast.”
Secret message, Part 2: “When multi-function small biz types sit back smugly sure in the knowledge that, because they can’t imagine something, it can’t possibly happen to them, it wears thin real fast.
Running meme at EB: Most of us do our best security work at the network edge. But most successful network damage comes from the inside. Stolen laptops, laptops festering with viruses, stupid backup procedures, fumbling fingers at SuperUsered keyboards, evil employees accessing things they shouldn’t , and evil employees abusing things they they’re allowed to access.
Ladies and gentlemen, there be dragons out there. Or, as Mike said above, “Just because you are paranoid doesn’t mean there aren’t people out to get you.”
Single function types shouldn’t be so smug in their expertise, multi-function types shouldn’t be so smug in their invulnerability, and the only people in charge of networks who sleep like babies are fools or idiots.
See what you made me do, smack? Now I sound like the rest of the zealots.
August 12th, 2006 at 3:19 pm
land0
(WARNING THIS POST IS NOT FOR THOSE OF YOU WHO ARE WEAK AT HUMOR OR HAVE HAD YOUR FUNNY BONE CALLOUSED BY WATCHING LATE NIGHT TELEVISION.)
BJ Gillette wrote
“That holier than thou garbage goes way past Linux. But Linux has somehow attracted more than its share.”
Ah ha! You speak of “The Merlin Syndrome” my fine two footed friend. A syndrome so devastating and so horrible and despicable that it has hindered the development of “good things”(thanks Martha) in every “corner of the world”(which would imply that it is flat) from the beginning of recorded history. What is it exactly? That will be the subject of my first article here at emailbattles.com entitled(shockingly) “The Merlin Syndrome” (which may or may not make it past the censors)
“Back to Kurt and land0… So between Kurt and land0, who’s pedantic? Nobody. Each is operating as correctly as that individual feels is practicable, within the knowledgebase and environment presented.”
Well said.
——-
Hello all,
It is not really a question of who is right or wrong here! It is merely a matter of choice coupled with the question of responsibility.
As for being pedantic,
Before I go out in public I also double check to make sure my zipper is zipped and my business is not exposed. So alas for me it is more a matter of consistency.
August 12th, 2006 at 8:49 pm
BJ Gillette
Hi land0.
What can I say? You’re one heckuva find. I’m gonna hold you to that article.
August 14th, 2006 at 3:19 am
aussiebear
To be honest, this “self taught” person needs to read and research more in adminstrating networks in a business scenario. The thing he’s missing is reading about procedures and such used in other organisations.
At best, you can view this as very half-arsed. Meaning that, when this person reads material and such, they only read what they need and that’s it. They don’t bother getting a good idea of the overall picture and how to do things properly. (procedures and such that have been well-developed).
From a security perspective, this is a BAD approach to managing or doing anything, let alone networks. I see this all the time at a University level. People are rushed into producing a solution that gets them a grade. The problem is, lecturers want to know how you got their and if the approach was done in a logical manner. (They want to teach you a way of thinking…Its sad that 90% of people don’t even see that!)
To me, it stems from the fact that the modern world demands results in a quick manner. The problem for humans, is that we tend to produce what we need at the cost of some things (the rush to produce results often produces low quality)…The best example is Microsoft. They’re so into producing things fast and wanting to be in every tech market, that they’re producing nothing great. At best, they’re producing “just enough” quality solutions.
August 14th, 2006 at 7:09 am
BJ Gillette
Hi aussiebear.
As you somehow discovered, bad managing approaches happen all the time. Most of the time it is not by design.
So are you going to do something to help… like design systems that make good approaches easier… or sit on your arse and let the more worldly wise know which end of you is doing the power thinking?
August 14th, 2006 at 11:20 pm
B Lewis
OK, so to counter “Some commenters even expressed disbelief that any Linux user on earth would use root for personal login,” you point out an example of someone who uses root for admin purposes only.
But really, I’m just not seeing the humor. OK, you were just posing as someone making a lame argument feigning superiority; maybe you were really making a joke about people who do that. I’ll try to laugh more.
Although, I would think if humor were your purpose, someone like me taking it seriously would only enhance and perpetuate the joke. Shouldn’t you be making replies that show even more cluelessness and feigned superiority to see how mad you can get me?
August 15th, 2006 at 7:20 am
Mary
B Lewis: Are you this boring at every party you go to?
August 15th, 2006 at 8:49 am
BJ Gillette
Hi B Lewis.
I’m superior only in the sense that I’m your host. It’s my dime.
I’m not Vincent Cerf, or better yet, Todd Underwood of Renesys. I’m trying to entertain and educate.
If I don’t entertain you, or in any way enlighten you, or soften your zealotry, at least around the edges, I am 100% certain you can find like-minded people anywhere else on the web.
Todd’s blog is fabulously technical, but I’ll warn you… he’s less patient with zealots than I.
——————-
Hi Mary.
And the answer is… “Yes! Absolutely!”
August 15th, 2006 at 12:29 pm
rossiFan
B Lewis may be a (insert adjective here), but he makes a good point in that the use of sudo is better suited for large *nix shops with more than 5 admins.
August 15th, 2006 at 1:03 pm
BJ Gillette
Hi rossiFan.
Oh. Did B Lewis have something to say beyond insulting the gracious host?
I failed to notice.
At EB, points by inconsiderate guests must be ignored until they grow up and behave like adults.
(I learned this from the Dog Whisperer. I was totally sold when it worked on Cartman.)
August 15th, 2006 at 2:53 pm
BJ Gillette
Hi rossiFan.
BTW: Your point is well taken.
August 18th, 2006 at 12:28 pm
P.Woods
Great typo. it makes the guys with the bling, who chant instead of sing “wrappers”.
May 2nd, 2007 at 7:12 am
johnson
Dear Sir
when i change hosts name then i got the error
kindly advise how to reconfigure sudo
sudo: unable to lookup edubuntu via gethostbyname()
August 9th, 2007 at 5:19 pm
Matt A
I have almost always logged in as root to adminster our servers. But I will now rethink that after your interesting exchange with “Kurt”. I see the error of my ways, though I do find it a hassle to sudo. Thanks for the enlightenment.