Changing file and directory permission for /usr/share/logstash?

Hello.

Logstash version : 5.3.0

I am trying to startup logstash with customer user via systemd on RHEL 7. I am doing this due to customer's security compliance.

I was able to startup logstash by fixing below environment.

  1. Modify logstash.service

    User=sample-logstash
    Group=sample-logstash

  2. Change directory and file permissions

    chown sample-logstash.root /var/log/logstash/
    chown sample-logstash.sample-logstash /var/lib/logstash/
    mkdir /usr/share/logstash/data/queue
    chown sample-logstash.sample-logstash /usr/share/logstash/data/queue

However, I also want to change the permission for home directory of logstash.

[root@host logstash]# ls -ld /usr/share/logstash/
drwxr-xr-x. 10 logstash logstash 4096 Apr  8 16:36 /usr/share/logstash/

May I change this directory permission recursively to my custom user( sample-logstash )?
Or should I leave the directory permission as "logstash"?

chown -R sample-logstash:sample-logstash /usr/share/logstash

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.