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

AuthorFullName__c
David Shin
articleNumber
000005029
FirstPublishedDate
2021-06-29T17:32:23Z
lastModifiedDate
2025-05-15

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

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, 

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