Provided by: sudo-ldap_1.8.27-1ubuntu4_amd64
cvtsudoers — convert between sudoers file formats
cvtsudoers [-ehMpV] [-b dn] [-c conf_file] [-d deftypes] [-f output_format] [-i input_format] [-I increment] [-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
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 file in the sudo distribution (https://www.sudo.ws/contributors.html) for an exhaustive list of people who have contributed to sudo.
If you feel you have found a bug in cvtsudoers, please 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 file distributed with sudo or https://www.sudo.ws/license.html for complete details.