Slashdot Mirror


Sudo vs. Root

lessthan0 writes "In Mac OS X, the root account is disabled by default. The first user account created is added to the admin group and that user can use the sudo command to execute other commands as root. The conventional wisdom is that sudo is the most secure way to run root commands, but a closer look reveals a picture that is not so clear." The article is about OSX but the debate is a little older ;)

11 of 327 comments (clear)

  1. Oh, great! by Len+Budney · · Score: 4, Funny

    Now all the black-hats out there will have a powerful new tool in their arsenal! You mean, a sudoer can, like, type "sudo /bin/bash" and then do all sorts of things as root? Pretty irresponsible of him to go telling the world a secret like THAT!

  2. Sudo vs. Root? by Evro · · Score: 5, Funny
    --
    rooooar
  3. Re:Old news and Poorly written by gEvil+(beta) · · Score: 2, Funny

    More like news for noobs

    Stuff that flatters?

    --
    This guy's the limit!
  4. My favorite sudo command: by AsnFkr · · Score: 4, Funny

    sudo passwd root

  5. Messed up sudoers by Gopal.V · · Score: 3, Funny
    Recently one of my friends editied his sudoers file with the following
    admin ALL=(ALL) ALL
    Now it is obvious to me that he forgot a % in there. From that point onwards, there was no way we could actually run sudo to be able to edit the file using visudo. Since there is no root account, we couldn't just log in as root to fix this issue. And because of the syntax error, sudo refused to work for any user.

    Now, a live CD and a setuid bash executable managed to fix the issue directly, but we learned an important lesson about root-less systems. If you screw up something like the /etc/sudoers, the system is hosed unless you have physical access.

    So as much as I use sudo for almost all my UID 0 needs, I think root still needs to live in every box just to safegaurd against such simple mistakes which ended up costing more hours than the sudo would've saved.
  6. The best way to secure the root account... by aurb · · Score: 5, Funny

    ...is to choose a really difficult password and forget it. This will secure the box from its' worst enemy - yourself.

  7. This says it all. by Anonymous Coward · · Score: 1, Funny
  8. Phil Collins by Jon+Luckey · · Score: 5, Funny
    Phil Collins probably had fits when this didn't work:

    pcollins$ su su sudio

    --
    -- 3 events that reshaped the world in the 20th century: WW1, WW2, and WWW
  9. How to disable root by SuperKendall · · Score: 1, Funny

    I reccomend you run a find command the deletes all files owned by root. That should do the trick! Without files, how could they be enabled?

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  10. Re:Layered Security by BrianPan · · Score: 4, Funny

    What in the world are you doing reading the articles on Slashdot? Who does that?

  11. Re:MUCH MUCH Much better solution by Arandir · · Score: 3, Funny

    Our IT department (of a 70,000 person organization) audited my lab, and discovered that I had used an "insecure" password password. They determined this because they were able to crack it... ...but it took them 18 hours to crack, and they had to do it within the lab because the system in question was behind two firewalls, and the system itself had no sensitive information on it. It was an internal development system, and the password was made easy (two English words separated by a symbol) so that our sixty developers could remember it. The password itself was written on the whiteboard in the lab, but the auditors didn't mention that.

    --
    A Government Is a Body of People, Usually Notably Ungoverned