Come arrestare Ubuntu dal chiedere la vostra parola d'accesso di sudo

da Sukrit Dhandhania su 27 maggio 2009

Linux Sicurezza

Se usate Ubuntu Linux è abbastanza probabile che ad un certo punto o ad un altro potete essere frustrati a relativo chiedere la vostra parola d'accesso quando prova ad effettuare le mansioni amministrative, come l'installazione dei programmi o cambiare le regolazioni del sistema. Ubuntu usa sudo l'attrezzo per controllare i diritti amministrativi piuttosto che gli utenti lasciare entra facilmente come radice utente. Ciò è realmente una buona misura di sicurezza. Tuttavia, se dovete effettuare frequentemente le mansioni amministrative può ottenere piuttosto annoying. Qui è come potete regolare Ubuntu a non rapido per la vostra parola d'accesso quando usando sudo.

Nota: ciò è qualcosa che non sia suggerita se state utilizzando il vostro calcolatore in un posto pubblico o sul vostro lavoro, poichè questo comprometterà la sicurezza dei vostri dati. Siete migliori fuori della regolazione del questo al vostro tavolo domestico in cui siete probabili fidarti di più gente.

Lanci una finestra terminale ed introduca il seguente comando:

visudo di sudo del #

Visudo è un attrezzo utilizzato per pubblicare la lima di configurazione di sudo . L'ordine richiamerà il vostro per la vostra parola d'accesso. Entrilo l'un'ultima volta. La lima di configurazione si aprirà in un sistema di editazione testi, molto probabilmente Nano. Arrotoli giù all'estremità del documento ed aggiunga la seguente linea:

username ALL=NOPASSWD: TUTTI

Sostituisca username con il username dell'utente desiderate permettere un sudo passwordless. Così se l'utente è calvin, entrereste:

calvin ALL=NOPASSWD: TUTTI

Conservi e rimuova la lima. Ceppo fuori, inizio attività come l'utente calvin e prova fuori il vostro nuovo sudo passwordless.

Alberini relativi:
  • Un'introduzione all'ordine di sudo e la configurazione archiviano
  • Come cambiare il web browser di difetto in Ubuntu
  • Come aumentare le risoluzioni dello schermo disponibili a Ubuntu mentre funzionando parallelamente per l'OS X
  • Come installare, installare ed usare il navigatore della finestra di Avant (barba) in Ubuntu Feisty
  • Come giocare le lime di .rmvb in Ubuntu
  • Ottenga le lezioni private semplici di aiuto giuste come questa nel vostro inbox del email giornaliere - per libero! 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>