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.
Change directory and file permissions
chown sample-logstash.root /var/log/logstash/
chown sample-logstash.sample-logstash /var/lib/logstash/
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