[sudo-users] ... is not allowed to run sudo on ...

Bernard Fay bernard.fay at gmail.com
Tue Oct 4 06:38:11 MDT 2016


Damn... When I clicked the Send button, I though about "localhost" in the
sudoers. That was my problem. I changed to the hostname of my server and it
works!!!  I overpass that part in the man page. :-(

Sorry!


On Tue, Oct 4, 2016 at 8:27 AM, Bernard Fay <bernard.fay at gmail.com> wrote:

> Hello group,
>
> I defined the following in sudoers to allow a script to modify the samba
> password of a user with root privileges.
>
> %users  localhost=(ALL) NOPASSWD:/bin/smbpasswd
>
> If I try to run "sudo /bin/smbpasswd":
>
> [bern at FILESRV01 ~]$ sudo /bin/smbpasswd
> [sudo] password for bernard.fay:
> bern is not allowed to run sudo on FILESRV01.  This incident will be
> reported.
>
>
> User bern is part of the group users:
> [bern at FILESRV01 ~]$ groups bern
> bern : Administrators users
>
> Could it because group users is an LDAP group?
>
> If not, what I am doing wrong?
>
> Thanks,
> Bernard
>
>
>


More information about the sudo-users mailing list