[RTFACT-15748] entrypoint-artifactory.sh docker script does chown -R instead of -RL to follow symlinks Created: 27/Jan/18  Updated: 04/Feb/18

Status: Open
Project: Artifactory Binary Repository
Component/s: Docker Image
Affects Version/s: 5.6.3, 5.8.3
Fix Version/s: None

Type: Bug Priority: High
Reporter: Scott Mosher Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None

Issue Links:
is related to RTFACT-15224 Running Artifactory docker container ... Resolved


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"


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


"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.

Comment by Eldad Assis [ 29/Jan/18 ]

With https://www.jfrog.com/jira/browse/RTFACT-15224, we will remove all `chown` calls in the entrypoint script. I think this will also solve this bug.

Generated at Wed Jul 08 02:28:26 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.