Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1515

Run updatepolicymgrpassword.sh and updatepolicymgrpassword.py to update policy mgr password failed.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Component/s: usersync
    • Labels:
    • Flags:
      Patch

      Description

      The "chown: invalid user: ‘ranger:ranger’" would appear when run updatepolicymgrpassword.sh and updatepolicymgrpassword.py to update policy mgr password. Test steps is following:
      1. Using following configuration to install the Ranger UserSync Process in install.properties.
      unix_user=usersync
      unix_group=usersync
      2. Running updatepolicymgrpassword.sh. or updatepolicymgrpassword.py to update policy mgr password.

      The linux user processing logic of the installer for the Ranger UserSync Process, updatepolicymgrpassword.sh and updatepolicymgrpassword.py is inconsistent. The installer for the Ranger UserSync Process use configuration parameters to create linux user. However updatepolicymgrpassword.sh and updatepolicymgrpassword.py use hard code get linux user. In above test steps the usersync user and usersync group was created when installing the Ranger UserSync Process. ranger user and ranger group don't exist. In chown ${unix_user}:${unix_group} `dirname "${SYNC_LDAP_BIND_KEYSTOREPATH}"` the updatepolicymgrpassword.sh used ranger user and ranger group. The updatepolicymgrpassword.sh code is as following:
      unix_user=ranger
      unix_group=ranger
      chown ${unix_user}:${unix_group} `dirname "${SYNC_LDAP_BIND_KEYSTOREPATH}"`.
      The installer for the Ranger UserSync Process code is as following:
      unix_user = globalDict['unix_user']
      ownerName = mergeProps[unixUserProp]
      groupName = mergeProps[unixGroupProp]
      ownerId = createUser(ownerName, groupName)

        Attachments

          Activity

            People

            • Assignee:
              peng.jianhua peng.jianhua
              Reporter:
              peng.jianhua peng.jianhua
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: