Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   cvtsudoers    ( 1 )

конвертировать между форматами файлов sudoers (convert between sudoers file formats)

  Name  |  Synopsis  |  Description  |  Files  |    Examples    |  See also  |

Примеры (Examples)

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