Ficou assim o /etc/sudoers:

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults        env_reset, rootpw

# Host alias specification

# User alias specification

# Cmnd alias specification

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

Mas agora o sudo tá ativo e não solicita senha para funcionar.... tentei
trocar o ALL que está entre parêntesespor PASSWD segundo recomenda o  man do
sudoers, mas  continua sem pedir senha....

Em 08/04/08, Junior Polegato - Linux <[EMAIL PROTECTED]> escreveu:
>
> Saul Lima escreveu:
>
> > O que está errado:
> > [...]
> > Defaults        env_reset
> > [...]
> > saul    ALL=(ROOTPW) ALL
> >
> > e quando salvo:
> > Warning: undeclared Runas_Alias `ROOTPW' referenced near line 18
> > Depois disso o sudo continua desabilitado para meu usuário...
> >
>
> Olá,
>
>      rootpw é em "Defaults", então dá um espaço (eu acho, senão tenta ','
> ou '|') depois de "env_reset" e escreve "rootpw" (sem aspas). Para mais
> informações, consulte:
>
> $ man sudoers
> [...]
>      rootpw      If set, sudo will prompt for the root password instead of
>                  the password of the invoking user.  This flag is off by
>                  default.
>
> [...]
>
>      Posta aí se conseguir...
>
>
>
> []'s
>
>                     Junior Polegato
>

Responder a