Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Autorisation list manipulation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Autorisation list manipulation

    Hello all, I am writing a program to change the security attributes of objects to follow some standards that we are puting in place. At one point, I need to remove the autorisation list associated with an object. I know I can use the EDTOBJAUT command but I need a way to do it in batch. At V4R4M0, I can do it with the command GRTOBJAUT OBJ(xxx) OBJTYPE(xxx) AUTL(*NONE). But this does not works with earlier version. Does any one know of a way to do this in a CL program? (I need a solution that works at v4r2) thanks

  • #2
    Autorisation list manipulation

    Denis, The only way I know of, is the AUT keyword on GRTOBJAUT. This will set the authority from *exclude to *ALL for a user profile or group profile. Hope this helps, Bret

    Comment


    • #3
      Autorisation list manipulation

      Does CHGAUT exist at V4R2, and does it allow AUTL(*NONE)?

      Comment


      • #4
        Autorisation list manipulation

        What about Revoke Object Authority (RVKOBJAUT)? I believe you can run it in batch, but I am not certain any longer. There must be a way to manipulate authority in batch mode because my old group used a batch job to reset production authorities after each and every installation. So, if RVKOBJAUT won't do the trick, there must be something out there that will. Have you tried this command?

        Comment


        • #5
          Autorisation list manipulation

          CHGAUT will do the trick. I will just have to use IFS notation. But in IFS notation an object is specified like this: /qsys.lib/mylib.lib/object.type The part (/qsys.lib/mylib.lib/object.) is easy to compute in a CL but the last part (type) is not obvious for me. I know that "lib" is for library. I guess "pgm" is for program but there are a lot of different object type. Is there an easy way to find out the correct extention in IFS notation for any object?

          Comment


          • #6
            Autorisation list manipulation

            RVKOBJAUT will work. But I need to specified the name the the autorisation list to be revoked (there are no special word like *none). Unfortunatly, to extract the name of the autorisation liste associated with an object, I must go trought the process of generating an outfile and then reading it. Do you know of an easier way to get the name of the autorization list?

            Comment


            • #7
              Autorisation list manipulation

              The type is always the object type. If you were changing it for program (*PGM) MyPgm in lib MyLib, it would be /qsys.lib/MyLib.lib/MyPgm.pgm For a user space (*usrspc) MyUsrSpace, it would be /qsys.lib/MyLib.lib/MyUsrSpace.usrspc I don't know if it'll allow something like /qsys.lib/mylib.lib/*. Also, for files and members, I don't know if you'd have to do them separately or what the implications of doing one but not the other would be: /qsys.lib/MyLib.lib/MyFile.file/MyMbr.mbr /qsys.lib/MyLib.lib/MyFile.file

              Comment

              Working...
              X