How to set the OS user/group for RPM/Debian installation of Artifactory?

David Shin
2021-06-29 17:32

Summary

 

You may need to set custom ownership of Artifactory for RPM/Debian service installation.

 

Description

 

By default, Artfactory's OS user/group is artifactory:artifactory for RPM, Debian service installation in 7.x

(This doesn't occur with Linux Archive install or non-service installs)

You may need to configure custom ownership of Artfiactory.

 

Resolution

1.  Change ownership of application and data directory to custom_user and custom_group, 

    Note : make sure artifactory is not running.

 

   chown -R  custom_user:custom_group /opt/jfrog/artifactory

   chown -R  custom_user:custom_group /var/opt/jfrog/artifactory

 

2. Edit /opt/jfrog/artifactory/var/etc/system.yaml with custom_user and custom_group details under shared:

 

   shared:

      user: custom_user

      group: custom_group

 

3. Start artifactory

     systemctl start artifactory.service

 

 

Keywords: ownership change, custom owner