Pular para o conteúdo

o sudo pede senha 2 vezes

Responder tópico
  • Denunciar
  • Indicar

1. o sudo pede senha 2 vezes

Enviado em 16/05/2012 - 15:11h

boa tarde! meu ubuntu esta pedindo para digitar a senha 2 vezes. exemplo ligo o pc na tela de login tenho que digitar a senha ai ele fica verificando e pede novamente para digitar a senha, o mesmo acontece no terminal tenho q digitar a senha do sudo 2 vezes.

Responder tópico

2. Re: o sudo pede senha 2 vezes

Enviado em 16/05/2012 - 15:35h

é o seu micro, ou está usando um terminal de empresa? suponho que seja o administrador.

poste aqui o conteúdo de seu arquivo /etc/sudoers.

3. Re: o sudo pede senha 2 vezes

Enviado em 16/05/2012 - 15:41h

meu micro mesmo.

##########################
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

4. Re: o sudo pede senha 2 vezes

Enviado em 16/05/2012 - 21:19h

J4 escreveu:

meu micro mesmo.

##########################
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


Não tenho certeza, mas acredito que isso ocorre porque de certa forma, o usuário root está configurado 2 vezes no sudoers. O root pode estar em algum desses grupos ae (sudo e admin), por isso as "duas vezes".
Tenta comentar a linha "root ALL=(ALL:ALL) ALL" e tenta dnv ae.

5. Re: o sudo pede senha 2 vezes

Enviado em 16/05/2012 - 23:14h

Trecho do meu "/etc/sudoers" no Ubuntu 12.04:


# User privilege specification
root ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


Aqui funciona perfeitamente.
O problema deve estar em outro arquivo.

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder