Jeffrey Walton <noloader@gmail.com> writes:
> Hi Everyone,
>
> I have a fresh Debian 12.9 install. My user account is part of sudo
> group, and members of sudo can run any command. However, I get an
> error when trying to use sudo:
>
> $ sudo ls
> [sudo] password for jwalton:
> jwalton is not in the sudoers file.
>
> $ groups
> jwalton cdrom floppy sudo audio dip video plugdev users netdev
> bluetooth lpadmin scanner
>
> $ su -
> Password:
>
> # grep -v -E '^#' /etc/sudoers | cat -s
> Defaults env_reset
> Defaults mail_badpass
> Defaults
> secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>
> Defaults use_pty
>
> root ALL=(ALL:ALL) ALL
>
> sudo ALL=(ALL:ALL) ALL
^
This means the user "sudo". For group you want to use "%sudo".
>
> I've rebooted the machine twice. I know the failure is not due to
> stale login information.
>
> Does anyone know why I cannot use sudo in this case?
>
> Jeff
>
--
Regards,
Xiyue Deng
Attachment:
signature.asc
Description: PGP signature