Wie man Ubuntu vom Bitten um Ihr sudo Kennwort stoppt

durch Sukrit Dhandhania auf 27. Mai 2009

Linux Sicherheit

Wenn Sie Ubuntu Linux verwenden, ist es ziemlich wahrscheinlich, daß an etwas Punkt oder an anderen Sie an seinem Bitten um Ihr Kennwort beim Versuchen frustriert worden sein können, administrative Aufgaben, wie Anbringen von Programmen oder Ändern der System Einstellungen durchzuführen. Ubuntu verwendet sudo das Werkzeug, zum der administrativen Rechte anstatt der Lassenbenutzer zu handhaben melden leicht als an Wurzel Benutzer. Dieses ist wirklich eine gute Sicherheitsmaßnahme. Jedoch wenn Sie administrative Aufgaben häufig durchführen müssen, kann es ziemlich ärgerlich erhalten. Ist hier, wie Sie Ubuntu auf nicht verlangen Ihr Kennwort beim Verwenden einstellen können sudo.

Anmerkung: dieses ist etwas, das nicht empfohlen wird, wenn Sie Ihren Computer in einem allgemeinen Platz oder an Ihrer Arbeit benutzen, da diese die Sicherheit Ihrer Daten sich vergleicht. Sie sind weg von der Einstellung dieses an Ihrem Hauptschreibtisch besser, in dem Sie wahrscheinlich sind, mehr Leuten zu vertrauen.

Stoßen Sie ein Terminalfenster aus und tragen Sie den folgenden Befehl ein:

# sudo visudo

Visudo ist ein Werkzeug, das benutzt wird, um die Konfiguration Akte von zu redigieren sudo . Der Befehl fordert Ihr für Ihr Kennwort auf. Betreten Sie es ein letztes Mal. Die Konfiguration Akte öffnet sich in einem Textherausgeber, höchstwahrscheinlich Nano. Scroll unten zum Ende des Dokumentes und addieren Sie die folgende Linie:

username ALL=NOPASSWD: ALLE

Ersetzen Sie username mit dem username des Benutzers möchten Sie ein passwordless sudo erlauben. So, wenn der Benutzer ist calvin, würden Sie hereinkommen:

calvin ALL=NOPASSWD: ALLE

Speichern Sie und nehmen Sie die Akte heraus. Maschinenbordbuch heraus, LOGON als der Benutzer calvin und Test heraus Ihr neues passwordless sudo.

In Verbindung stehende Pfosten:
  • Eine Einleitung zum sudo Befehl und Konfiguration ordnen ein
  • Wie man das Rückstellung web browser in Ubuntu ändert
  • Wie man die Schirmauflösungen erhöht, die auf Ubuntu beim Laufen in den ähnlichkeiten für OS X vorhanden sind
  • Wie man anbringt, gründet und verwendet Avant Fenster-Nautiker (Granne) in Feisty Ubuntu
  • Wie man .rmvb Akten in Ubuntu spielt
  • Erhalten Sie einfache Hilfe Tutorials gerecht wie dieses in Ihrem täglichen email inbox - für freies! Just enter your email address below:

    You can always opt out of this email subscription at any time.

    { 1 trackback }

    Ubuntu won’t ask for your sudo password anymore - Karol Zielinski’s Blog
    05.28.09 at 2:45 am

    { 5 comments… read them below or add one }

    1 Michael 05.27.09 at 7:28 am

    Talk about circumventing security!
    Why not just run:

    sudo su

    in a terminal and do your root command tasks there. That way:
    1) You don’t have to sudo each command.
    2) You only enter your password once.

    2 LinuxLover 05.27.09 at 11:10 am

    This is about as boneheaded as running Vista with no security software at all. Why on Earth would you want to do this?

    Personally, I’m not a fan of Sudo, because using ones own user password just isn’t secure, IMO. I just use a different distro that doesn’t use Sudo by default.

    3 Mihc 05.27.09 at 2:02 pm

    You might as well run windows

    4 gyffes 05.27.09 at 5:48 pm

    While there’s no way this is as dangerous as running Windows unpatched and without a latex suit, I gotta concur with the others: this seems a silly thing to be compromising. Especially since, as LL noted, above, Sudo already is a bit weak, security-wise. I understand the idea of having no Root account enabled for to be stumbled ‘pon, but if someone is far enough into my system that they’re typing terminal commands, aren’t they likely to have my sudo pwd?

    Anyway, it’s not like sudo blah blah is so hard to type. Further, I’ve noticed that the system doesn’t ask for the password again if the sudo commands are issued close enough together (say, sudo apt-get update [lots of processing....] sudo apt-get upgrade… [ditto...] whatever next.

    5 Ross McKillop 05.27.09 at 5:58 pm

    To those who question the wisdom of this -

    You’re absolutely right, under some circumstances.

    I ran Slackware (and only Slackware) from ‘94 to ‘99. I ALWAYS had a root terminal open, usually several. I would blindly issue commands not being aware of which terminal I was in. Smart? Maybe not. But not once did I do anything harmful to the system by mistake etc.

    Not everyone should follow the steps in this tutorial and disable the sudo password. But for those that want to know how, the info is provided.

    As Sukrit mentioned, this isn’t something you’d want to do on a computer at work or anywhere that other people can use it. But for a home desktop behind a firewall, for someone who knows what they’re doing, it can be very useful and time saving.

    Leave a Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>