ref: https://www.sudo.ws/man/1.7.4p6/sudoers.ldap.man.html

What does host netgroup mean in the context of sudoHost in Sudoers LDAP Schema.

Can you please give an example of how to set this up?

1 Answer 1


A host netgroup contains a list of hosts.

myhostnetgroup     (server1) (server2) (server3)

Refer to the manpage. If you want your netgroups in LDAP check here for some information.

When you reference the netgroup in your sudo config, it will grant access to any of the hosts in the netgroup so you don't have to list them out explicitly.

  • Can the host netgroup be defined in LDAP?
    – Saqib Ali
    Commented Oct 10, 2016 at 18:39
  • Yes, added a reference link to my answer.
    – MikeA
    Commented Oct 10, 2016 at 18:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .