[FS-Repository] Path is not accessible on master node

I tried to config a repository to save snapshot, but show this error:

PUT _snapshot/bkp-test
{
"type": "fs",
"settings": {
"location": "/media/test"
  }
}
{
  "error" : {
    "root_cause" : [
      {
        "type" : "exception",
        "reason" : "failed to create blob container"
      }
    ],
    "type" : "repository_verification_exception",
    "reason" : "[bkp-test] path  is not accessible on master node",
    "caused_by" : {
      "type" : "exception",
      "reason" : "failed to create blob container",
      "caused_by" : {
        "type" : "access_denied_exception",
        "reason" : "/media/test/tests-V8oEQp2-RAiuHmpDP_RS0g"
      }
    }
  },
  "status" : 500
}
[root@CENTOS-LAB media]# ls -l
total 0
drw-rw-rw- 2 root root 6 Jul  8 17:06 test

I tried to execute this too, but the error persist:
[root@CENTOS-LAB media]# chown -R elasticsearch:elasticsearch test/

Plz, someone can help me?

The repository need to be a shared file system, e.g. NFS, mounted on all master and data nodes in the same location.