Cómo parar Ubuntu de pedir su contraseña del sudo

por Sukrit Dhandhania en 27 de mayo de 2009

Linux Seguridad

Si usted utiliza Ubuntu Linux es absolutamente probable que en un cierto punto u otro usted pueda haber sido frustrado en su pedir su contraseña al intentar realizar tareas administrativas, tales como instalación de programas o cambiar ajustes del sistema. Ubuntu utiliza sudo la herramienta para manejar las derechas administrativas más bien que a usuarios el dejar se abre una sesión fácilmente como raíz usuario. Esto es realmente una buena medida de seguridad. Sin embargo, si usted necesita realizar tareas administrativas con frecuencia puede conseguir algo molesto. Aquí es cómo usted puede fijar Ubuntu a no pronto para su contraseña al usar sudo.

Nota: éste es algo que no se recomienda si usted está utilizando su computadora en un lugar público o en su trabajo, pues éste comprometerá la seguridad de sus datos. Usted es mejor de fijar esto en su tablero del escritorio casero donde usted está probable confiar en a más gente.

Lance una ventana terminal e incorpore el comando siguiente:

visudo del sudo de #

Visudo es una herramienta usada para corregir el archivo de la configuración de sudo . El comando incitará su para su contraseña. Éntrelo en una vez última. El archivo de la configuración se abrirá en un editor de textos, muy probablemente Nano. Enrolle abajo al extremo del documento y agregue la línea siguiente:

username ALL=NOPASSWD: TODOS

Substituya username con el username del usuario usted desea permitir un sudo passwordless. Tan si es el usuario calvin, usted entraría:

calvin ALL=NOPASSWD: TODOS

Ahorre y salga del archivo. Registro hacia fuera, conexión como el usuario calvin y prueba hacia fuera su sudo passwordless nuevo.

Postes relacionados:
  • Una introducción al comando del sudo y la configuración archivan
  • Cómo cambiar el web browser del defecto en Ubuntu
  • Cómo aumentar las resoluciones de la pantalla disponibles a Ubuntu mientras que funciona en los paralelos para OS X
  • Cómo instalar, setup y utilizar a navegador de la ventana de Avant (Awn) en Ubuntu Feisty
  • Cómo jugar archivos de .rmvb en Ubuntu
  • ¡Consiga las clases particulares simples de la ayuda justas como ésta en su inbox del email diario - para libre! Just enter your email address below:

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

    { 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>