我有一个符号链接指向Ubuntu 16.04 LTS Azure VM 上/etc/elasticsearch/analysis
已安装的驱动器。/elasticdata/fileshare/analysis
当我尝试启动 elasticsearch 时,出现以下权限错误:
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/etc/elasticsearch/analysis" "read")
挂载的驱动器具有以下权限:
drwxrwxrwx 2 elasticsearch elasticsearch 0 May 22 22:44 analysis
符号链接具有以下权限:
lrwxrwxrwx 1 elasticsearch elasticsearch 43 May 22 22:49 analysis -> /elasticdata/fileshare/analysis/
TLDR:符号链接由用户和组拥有elasticsearch
,似乎具有读取权限,但我在 elasticsearch 启动时仍然收到读取权限错误。
如何解决此权限错误?
编辑:
以下是路径中每个步骤的权限:
/etc => drwxr-xr-x
/etc/elasticsearch => drwxr-S---
/etc/elasticsearch/analysis => lrwxrwxrwx
/elasticdata => drwxrwxrwx
/elasticdata/fileshare => drwxrwxrwx
/elasticdata/fileshare/analysis => drwxrwxrwx
答案1
您需要验证路径中每个步骤的权限以及符号链接的目标:
/etc
/etc/elasticsearch
/etc/elasticsearch/analysis
/elasticdata
/elasticdata/fileshare
/elasticdata/fileshare/analysis