2 Replies Latest reply on Dec 15, 2009 2:24 AM by jumsky79

    How to make Perl that gives the permission of each VM

    jumsky79 Novice

      Please teach how to make Perl that gives the permission of each machine.

       

      I want to execute the following in the script.

       

      ==========================================

       1. make user

         →User-A, User-B (vicfg-user)

       2. make role

         → Role-A,Role-B( createRole.pl)

       3.set permission for the user

          → set Role-A for the User-A

             set Role-B for the User-B

       4.Update user permission in each VM

        ・Before

          ・VM-1

            ・root(Administrator)

            ・vpxuser(Administrator)

            ・User-A(Role-A)

            ・User-B(Role-B)

       

        ・VM-2

            ・root(Administrator)

            ・vpxuser(Administrator)

            ・User-A(Role-A)

            ・User-B(Role-B)

       

        ○After update

          ・VM-1

            ・root(Administrator)

            ・vpxuser(Administrator)

            ・User-A(Role-A)

            ・User-B(No-Access)

       

          ・VM-2

            ・root(Administrator)

            ・vpxuser(Administrator)

            ・User-A(No-Access)

            ・User-B(Role-B)

      ==========================================

       

      I made Perl script from 1 to 3.

      but I can't make Perl script(4).

      I want to update user permission in each VM

       

      Any help is greatly appreciated!