Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Unix Technology IT

Common Traits of the Veteran Unix Admin 592

snydeq writes "Deep End's Paul Venezia offers a field guide to understanding your resident Unix veteran, laying out the nine traits common to this grizzled, hardcore set. From not using sudo, to wielding regular expressions like weapons, to generally assuming the problem resides with whomever is asking the question, each trait is key to 'spotting these rare, beautiful creatures in the wild,' Venezia writes. 'If some of these traits seem anti-social or difficult to understand from a lay perspective, that's because they are. Where others may see intractable, overly difficult methods, we see enlightenment, borne from years of learning, experience, and overall, logic.'"
This discussion has been archived. No new comments can be posted.

Common Traits of the Veteran Unix Admin

Comments Filter:
  • vim? really? (Score:5, Insightful)

    by shitetaco ( 1954742 ) on Monday February 14, 2011 @11:05PM (#35205916)

    vim? svelt? Puhleez. When not using ed(1), Real Unix vets use Bostic's One True vi, not some fagged-up Vegas showplace of an editor like vim.

  • Hmmm (Score:3, Insightful)

    by mmj638 ( 905944 ) on Monday February 14, 2011 @11:07PM (#35205926)

    Lemme just email this to all my friends with the subject line "If you know someone like this pass it on LOL"

  • by Anonymous Coward on Monday February 14, 2011 @11:19PM (#35206018)

    Using sudo exclusively is like bowling with only the inflatable bumpers in the gutters -- it's safer, but also causes you to not think through your actions fully.

    That is just stupid. System destroying actions are system destroying actions. Sudo or su or runlevel 1, if you are not thinking out your actions, you have no business executing that action. Both commands can get you into the same trouble.

  • by mmj638 ( 905944 ) on Monday February 14, 2011 @11:22PM (#35206042)

    I'm actually rather impressed that this site still works in Lynx, what with all its new-fangled ajax hoohaa.

  • by rockiams ( 12481 ) on Monday February 14, 2011 @11:22PM (#35206052) Homepage

    Really? When your job is entirely about being root, sudo is just getting in the way. I happen to have run systems in a serious environment, and we never used sudo. I would say if you have something to do that ISN'T root, you sir are teh nub.

  • by Anonymous Coward on Monday February 14, 2011 @11:23PM (#35206056)

    You're both wrong, I'm right.

  • Stupid (Score:3, Insightful)

    by nedlohs ( 1335013 ) on Monday February 14, 2011 @11:26PM (#35206074)

    Unless unix veteran is a code word for idiot of course.

    Take #9: "Our thinking here is there's no reason why a reboot should ever be necessary other than kernel or hardware changes, and a reboot is simply another temporary approach to fixing the problem.". When a run away program fills the disk or sets off the OOM killer then after fixing the problem itself rebooting is the obviously wise thing to do - who knows what random proceess got put in a bad state by the resource exhaustion best reboot and get everything into a known good state.

    And of course have fun when the machine does need to be rebooted for a "kernel of hardware change" and some vital service doesn't restart because no one checked that the damn init script was enabled.

  • by Anonymous Coward on Monday February 14, 2011 @11:33PM (#35206120)

    You just prefix each command with "sudo". It becomes a reflex. You've essentially turned your regular account into a root account. You no longer really have a regular account.

    That "#" prompt was invented for a reason: it provides a reminder. While you certainly could be oblivious to such a reminder, that is less a risk than always being one thinko away from doing root actions while feeling all safe and usery.

    Better is a separate login window, keyboard, seat, font, color scheme, desktop, etc.

  • Re:RegEx? (Score:3, Insightful)

    by Anonymous Coward on Monday February 14, 2011 @11:43PM (#35206194)

    Beware, Cthulu awaits [stackoverflow.com].

  • Re:Stupid (Score:5, Insightful)

    by nonguru ( 1777998 ) on Monday February 14, 2011 @11:44PM (#35206198)
    Not stupid at all. This guy is into root cause analysis as a process of understanding faults and finding lasting solutions. (See reference to "bandaids".) Covers up your tracks until the next crash. A fully functioning fault-free system working as designed should not require a reboot except for the cases outlined. Unless unix systems aren't as reliable as people like to assume...
  • by squallstrifeau ( 1942392 ) on Monday February 14, 2011 @11:46PM (#35206210)
    Su to root, solve the problem, get out. I don't see what isn't methodical about that?

    The article certainly isn't suggesting that one should surf the web or IRC as root...

    The popular Linux community is so tied up in what Canonical has deemed "best practice" that it no longer trusts itself with the level of control it brags to Windowsland about having.
  • Re:Stupid (Score:5, Insightful)

    by thogard ( 43403 ) on Monday February 14, 2011 @11:49PM (#35206228) Homepage

    Real sysadmins know when things get in odd states and can restart those things without rebooting.

    Of course reboot tests are required to make sure the box will come back up correctly but those are to reset things, they are part of system testing.

  • by matt-fu ( 96262 ) on Monday February 14, 2011 @11:52PM (#35206244)
    Really. I consider it a sign of inexperience and an indicator that the admin has never had to clean up after someone else screwed something up as root. That may be the case if you are super meticulous and you've been the only admin everywhere you've been, but no serious environment only has one root level admin and I have yet to meet anyone who was really good and super meticulous all the time.

    I'm doing sysadmin, maybe one out of 20 commands I type *have* to be run with root access. If I am doing them all as root then there is a much greater chance of making a mistake and committing that system destroying action or, even worse, doing something subtly bad that nobody knows about until later when it's too late. It also makes me think twice (instead of just once) before executing that command as sudo.

    Sudo logs commands that were run, by whom, and when. Even if I didn't care about whether I was root all the time or not, having a log of what was done with that access can be an indispensable tool when doing system troubleshooting. It's also a handy way of telling if someone screwed something up or if j00 wuz pwndz.

    To me, running around as root and not using sudo is like using vi to look at a config file you have no intention of editing or similar. It's too easy to slip up and do something wrong once you get "in the groove". Add a page at 4am to that or a situation where you're at the tail end of a 30 hour emergency maint and it's beyond easy to screw things up.
  • by tnk1 ( 899206 ) on Monday February 14, 2011 @11:54PM (#35206260)

    Uh, sudo isn't a tool, its a wrapper to audit trail your ass and limit what you can run. The only reason to have it apply to admins is to watch them. Otherwise it just gets in the way. Its not like it adds something to the experience for anyone. It doesn't keep you from making a mistake, it just keeps you from running commands that someone else has decided that you don't need access to. That's like saying that locking away guns prevents you from shooting yourself in the foot. Its does... unless you are in the Army and your job is to tote the thing around on patrol for days at a time. There are simply some times in life where you have to know how not to shoot yourself in the foot.

    The only place I ever had it applied to me was when I worked in the financial services industry, and I understood their position. Even then, the sudoers file was so badly conceived that, had we wanted to, it would have been a simple matter to get a root shell. Its difficult to keep out the very people that you need to keep the system running. I'd argue that it is generally not even worth trying it at all unless a very unforgiving regulatory commission is breathing down your neck.

    If you don't know how to use root access in a way that doesn't screw up your box, you don't deserve to have a job as an admin, period. Its not like its easy to bumble around on a command line and screw something up. There's really only one really easy thing to do that will potentially demolish a box and that's rm -rf * in the wrong directory and it is a rare sudoers file indeed that prevents a sysadmin from running 'rm'. You could argue a reboot or shutdown on a box with something like a database might be a problem as well, but after that, you actually need to put some effort in screwing up your host with the other commands. Even format/fdisk requires you to think about how you are going to reformat your disk.

    I use sudo a lot... to make sure developers can't screw up boxes and do cute little tests in production. But my rule of thumb as an admin is that sudo is something that is inflicted on someone else.

  • by bigstrat2003 ( 1058574 ) on Tuesday February 15, 2011 @12:01AM (#35206304)
    With the audience of this site, it wouldn't surprise me if Lynx is a test case when the design is modified.
  • Re:vim? really? (Score:5, Insightful)

    by Culture20 ( 968837 ) on Tuesday February 15, 2011 @12:12AM (#35206396)

    vim? svelt? Puhleez. When not using ed(1), Real Unix vets use Bostic's One True vi, not some fagged-up Vegas showplace of an editor like vim.

    That's like saying Real Unix vets still use telnet and rsh to remotely administer machines. Sometimes it's nice to be able to move up and down lines without having to leave edit/write mode. vim is used by Real Unix vets who have kept up with the times, just like ssh. Only washed up has-beens don't learn to eventually use better tools.

  • by tnk1 ( 899206 ) on Tuesday February 15, 2011 @12:42AM (#35206566)

    True. I will reboot a host without a second thought if a specific type of issue comes up. Root cause analysis is great, but when you're in production, the host really needs to be running. You can figure out the RCA from the logs later on, if need be.

    However, most issues with a box can easily, and much more quickly, be fixed by simply restarting specific processes. I've had plenty of hosts stay up for years at a time with nothing else needed but to occasionally restart some processes. And that is the way it should be. Rebooting isn't some magical maintenance cycle where the oil gets changed and the hamsters are replaced, its just a wipe of the RAM and reload of the OS to an initial state. It doesn't fix hardware errors, bad code or poor planning.

    Unfortunately, most of the time, the order comes from someone who doesn't know what they are doing. In that case, as long as it doesn't make things worse, if it takes longer to convince them to not reboot the host than it does to actually reboot it, you might as well go, "Right away, sir." and get it over with.

  • Re:vim? really? (Score:5, Insightful)

    by eln ( 21727 ) on Tuesday February 15, 2011 @12:54AM (#35206624)
    I have to go with the GP on this one. It's not that vim is inherently bad, it's just that it's *unnecessary*. It includes tons of features that an old-school admin has no use for. Sure, most of us use it anyway because modern Linux systems usually don't include our good friend vi (it's usually just a symlink to vim), but we rarely use the features that separate vim from vi. Moving in and out of edit mode is second nature. Hell, even using the arrow keys to move around is a needlessly inefficient waste of motion, since the arrow keys are usually far from any other useful key on the keyboard. The first thing we do in vim is turn off syntax highlighting and silently curse whoever keeps turning it back on.

    The comparison to ssh is inaccurate as well. We use ssh because ssh gives us clear security advantages over telnet and rsh, and allows us to use one tool where we previously needed two. Any Unix admin worth his salt, no matter how long and luxurious his neck beard, will gladly upgrade his tools to improve his own efficiency or increase security. SSH does both of those things, while vim does neither.
  • by grcumb ( 781340 ) on Tuesday February 15, 2011 @01:44AM (#35206860) Homepage Journal

    With the audience of this site, it wouldn't surprise me if Lynx is a test case when the design is modified.

    Lynx is my 'What does this look like to Google?' browser.

    Every time someone claims not to care about whether blind people can access their site, I remind them that search engine crawlers are blind.

  • by grcumb ( 781340 ) on Tuesday February 15, 2011 @01:58AM (#35206904) Homepage Journal

    On a server, what could I possible need to do that doesn't require root?

    "Man, if you gotta ask, you ain't never gonna know!"

    For my file server 159 out of the last 500 commands featured sudo in them. On my database server, the number is 199.

    On one of my main application servers, the user account for the service itself isn't even in /etc/sudoers. All of the maintenance and administrative tasks are done without resorting to extra permissions.

  • by visualight ( 468005 ) on Tuesday February 15, 2011 @02:15AM (#35206972) Homepage

    Ok, logging into to a database is *not* being a Unix/Linux Admin, it is managing a database.

    Listen. The people who log in to make changes to the database, and update the website(sorry, application server), are *USERS*, even if some of them are in sudoers, they are not the Admin (who put them in sudoers).

  • by inKubus ( 199753 ) on Tuesday February 15, 2011 @02:36AM (#35207064) Homepage Journal

    Actually, correction:
    10. Veteran Unix admins don't "write articles for InfoWorld".

  • by drsmithy ( 35869 ) <drsmithy@nOSPAm.gmail.com> on Tuesday February 15, 2011 @02:58AM (#35207166)

    Provided you don't trust it to actually do those things. If someone can run 'sudo su -' then they own the system and can make the sudo log files say whatever they want, including removing the fact that they ran 'sudo su -'. Ditto 'sudo emacs', 'sudo dd', 'sudo mv' or any other command that as root will execute subsidiary commands, write specified data to specified files or any various other routes to a root shell. And in most cases you don't even need to muck about modifying logs: Just 'sudo emacs /etc/something/innocuous' and nothing untoward appears in the sudo log but you can run unlogged commands from within emacs, etc.

    Yes. This is why you disable all those backdoors and only specify particular commands that can be run in /etc/sudoers, with others either denied, or lighting up your IDS/system monitoring like a Christmas tree.

    (This also serves as a handy reminder that properly securing systems is *extremely difficult*.)

  • Re:vim? really? (Score:4, Insightful)

    by TheRaven64 ( 641858 ) on Tuesday February 15, 2011 @06:30AM (#35207816) Journal

    The first thing we do in vim is turn off syntax highlighting and silently curse whoever keeps turning it back on

    I second the other poster's WTF here. It's one thing not to rely on the advanced features of vim - after all, the Single UNIX Spec only mandates vi, so it's the only thing you can guarantee being available, but it seems crazy to not take advantage of them when they are available. Do you also turn of auto-indenting and multi-level undo so that you can spend more time typing and less time actually being productive?

The key elements in human thinking are not numbers but labels of fuzzy sets. -- L. Zadeh

Working...