Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-15748

entrypoint-artifactory.sh docker script does chown -R instead of -RL to follow symlinks

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.6.3, 5.8.3
    • Fix Version/s: None
    • Component/s: Docker Image
    • Labels:
      None

      Description

      In entrypoint-artifactory.sh from docker.bintray.io/jfrog/artifactory-pro:5.6.3 line no. 170 should be changed from

      chown -R ${USER_TO_CHECK}:${GROUP_TO_CHECK} ${DIR_TO_CHECK} || errorExit "Setting ownership on $DIR_TO_CHECK failed"

      to

      chown -RL ${USER_TO_CHECK}:${GROUP_TO_CHECK} ${DIR_TO_CHECK} || errorExit "Setting ownership on $DIR_TO_CHECK failed"

      Reason:

      "chown -R" fails to correct file permissions in /opt/jfrog/artifactory/etc/ because this is a symlink to /var/opt/jfrog/artifactory/etc/

      "chown -RL" will follow the symlinks and set the permissions correctly.

      They are running Artifactory in a Kubernetes cluster. Kubernetes mounts several config files directly into the directory with owner and group set to root. The entrypoint script should correct this, but fails because chown -R is not following the symlinks to the directories.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                scottm Scott Mosher
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: