5 Replies Latest reply on Jan 31, 2011 3:50 PM by Bill Robinson

    Initial user mapping in nsh-install-defaults file

      Hey everyone,

       

      I was wandering if someone could clarify the items that need to be put into the nsh-install-defaults file to map the BLAdmins:BLAdmin user.

       

      The documentation says this:

       

      Set these values to configure a default user mapping in the users.local file. By default no users are mapped. The values set with this variable create an entry  in the users.local file that says:

       

      NSH_USER_FROM rw,map=NSH_USER_TO

       

      For example, by defining values for these variables, you could create an entry in users.local similar to the following example:

       

      betty rw,map=root

       

      I don't fully understand this. Should I declare NSH_USER_FROM and NSH_USER_TO  as variables? if so.... how do I do that?

        • 1. Re: Initial user mapping in nsh-install-defaults file
          Saurabh Kashikar

          INSTALL_DIR=”/opt/bmc/BladeLogic/8.0”

          export INSTALL_DIR

          COMPONENT_CHECKED=1

          export COMPONENT_CHECKED

          IS_SECURE_AGENT_LOGS=1

          export IS_SECURE_AGENT_LOGS

          IS_KEYSTROKE_LOGS=1

          export IS_KEYSTROKE_LOGS

          RND_CHOICE=1

          export RND_CHOICE

          NSH_ROOT_HOST=””

          export NSH_ROOT_HOST

          NSH_USER_FROM=”BLAdmins:BLAdmin”

          export NSH_USER_FROM

          NSH_USER_TO=”root”

          export NSH_USER_TO

          NSH_INSTALL_SKEL=”n”

          export NSH_INSTALL_SKEL

           

           

          This will create entry in exports file

          •             rw,root=<appserver machine names>

           

          And in users.local file

          BLAdmins:BLAdmin         rw,map=root

          • 2. Initial user mapping in nsh-install-defaults file
            Bill Robinson

            your nsh-install-defaults will not affect the exports file because you have:

            NSH_ROOT_HOST=””

            export NSH_ROOT_HOST

             

            the entries:

            NSH_USER_FROM=”BLAdmins:BLAdmin”

            export NSH_USER_FROM

            NSH_USER_TO=”root”

            will affect the users.local file as noted though.

            • 3. Re: Initial user mapping in nsh-install-defaults file

              Why do you put an export line after all of the other lines?

               

              And I still don't understand exactly what needs to go in the nsh-install-defaults file in order to map the BLAdmins:BLAdmin user.

              • 4. Re: Initial user mapping in nsh-install-defaults file
                Saurabh Kashikar

                INSTALL_DIR=”/opt/bmc/BladeLogic/8.0”

                export INSTALL_DIR

                COMPONENT_CHECKED=1

                export COMPONENT_CHECKED

                IS_SECURE_AGENT_LOGS=1

                export IS_SECURE_AGENT_LOGS

                IS_KEYSTROKE_LOGS=1

                export IS_KEYSTROKE_LOGS

                RND_CHOICE=1

                export RND_CHOICE

                NSH_ROOT_HOST=””

                export NSH_ROOT_HOST

                NSH_USER_FROM=”BLAdmins:BLAdmin”

                export NSH_USER_FROM

                NSH_USER_TO=”root”

                export NSH_USER_TO

                NSH_INSTALL_SKEL=”n”

                export NSH_INSTALL_SKEL

                 

                 

                This will create entry in exports file

                •             rw,root=<appserver machine names>

                 

                And in users.local file

                BLAdmins:BLAdmin         rw,map=root

                 

                Replying now in plain text format and hoping that everything goes through correctly

                1 of 1 people found this helpful
                • 5. Re: Initial user mapping in nsh-install-defaults file
                  Bill Robinson

                  the nsh-install-defaults file is sourced by the RSCD installer.  it sets the variables declared in the file.  'export' makes the variable availble in the shell as the installer runs.  the values of the variables are used at various points during the install.

                   

                  i believe the email replies/notification to the community strip formatting, so view it the post on the site itself.

                   

                  if you only want to set the users.local entries, and nothing else put this in the /tmp/nsh-install-defaults file:

                  NSH_USER_FROM=”BLAdmins:BLAdmin”

                  export NSH_USER_FROM

                  NSH_USER_TO=”root”

                  export NSH_USER_TO

                   

                  that will put this:

                  BLAdmins:BLAdmin rw,map=root

                  in the users.local file.

                   

                  the other entries are used to set other options during the install.