Provided by: sudo-ldap_1.9.11p3-1ubuntu1_amd64
cvtsudoers — convert between sudoers file formats
cvtsudoers [-ehMpV] [-b dn] [-c conf_file] [-d deftypes] [-f output_format] [-i input_format] [-I increment] [-l log_file] [-m filter] [-o output_file] [-O start_point] [-P padding] [-s sections] [input_file ...]
/etc/cvtsudoers.conf default configuration for cvtsudoers
Convert /etc/sudoers to LDIF (LDAP Data Interchange Format) where the ldap.conf file uses a sudoers_base of my-domain,dc=com, storing the result in sudoers.ldif: $ cvtsudoers -b ou=SUDOers,dc=my-domain,dc=com -o sudoers.ldif \ /etc/sudoers Convert /etc/sudoers to JSON format, storing the result in sudoers.json: $ cvtsudoers -f json -o sudoers.json /etc/sudoers Parse /etc/sudoers and display only rules that match user ambrose on host hastur: $ cvtsudoers -f sudoers -m user=ambrose,host=hastur /etc/sudoers Same as above, but expand aliases and prune out any non-matching users and hosts from the expanded entries. $ cvtsudoers -ep -f sudoers -m user=ambrose,host=hastur /etc/sudoers Convert sudoers.ldif from LDIF to traditional sudoers format: $ cvtsudoers -i ldif -f sudoers -o sudoers.new sudoers.ldif Merge a global sudoers file with two host-specific policy files from the hosts “xyzzy” and “plugh”: $ cvtsudoers -f sudoers -o sudoers.merged sudoers \ xyzzy:sudoers.xyzzy plugh:sudoers.plugh
sudoers(5), sudoers.ldap(5), sudo(8)
Many people have worked on sudo over the years; this version consists of code written primarily by: Todd C. Miller See the CONTRIBUTORS.md file in the sudo distribution (https://www.sudo.ws/about/contributors/) for an exhaustive list of people who have contributed to sudo.
If you believe you have found a bug in cvtsudoers, you can submit a bug report at https://bugzilla.sudo.ws/
Limited free support is available via the sudo-users mailing list, see https://www.sudo.ws/mailman/listinfo/sudo-users to subscribe or search the archives.
cvtsudoers is provided “AS IS” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. See the LICENSE.md file distributed with sudo or https://www.sudo.ws/about/license/ for complete details.