How to operate on a directory with different owner from a script?
0
votes
1
answer
40
views
Few days ago i have installed elasticsearch,
For diagnosing some problems on my elasticsearch setup, i have checked the logs files located in
/var/log/elasticsearch
and tailed them but apparently the directory's owner is elasticsearch
and the group is elasticsearch
, therefore i have resolved it by switching to root and apply the tail (not an elegant way).
Now I would like to write a simple script to tail those files (I'm using tmux), Does anybody has a suggestion how to overcome the the privileges issue while using a script? I prefer keeping the ownership to elasticsearch
user.
Asked by JammingThebBits
(426 rep)
May 15, 2019, 07:05 AM
Last activity: May 15, 2019, 09:39 AM
Last activity: May 15, 2019, 09:39 AM