0 Replies Latest reply on Nov 9, 2016 1:45 PM by Sorin Gancea

    Management of sudoers with grammar file and BlPackage

    Sorin Gancea



      I have a customer that wants to manage his sudoers permission with BlPackages and a dedicated grammar file. BSA is 8.9.0.


      He created a configuration file from his sudoers file using the attached grammar (sudoers.gm). The content of sudoers file is correctly parsed in live browse window, for the corresponding configuration file, on a Linux server. See attachment: sudoers_ok.txt


      Then an entry from a sudoers file is packed in a BlPackage and this BlPackage is deployed on another server.


      The result of this deploy job is green but the sudoers file is corrupt, as it can be seen in attachment: sudoers_wrong.txt.


      I know that editing a sudoers file requires a special visudo command and having the file in one exclusive editing session.


      Is there a way to achieve the goal as it's requested by my customer?