Skip to content

Permission issues with non-root user pods #7

@xrow

Description

@xrow

Depending on the type of pod you start the PVs are created with different owners/permissions.

In the pod we do see now permission errors

image

cp: cannot create directory '/var/solr/data/ezplatform': Permission denied

The reason for that is that the folder is owned by root with 755 permissions and the user solr can`t create folders.

A fix could be to create that folders with 777 permissions somehow.

[root@openshift data]# ls -lisa hostpath-provisioner/
total 16
2147488241 4 drwxrwxrwx. 9 root    root 4096 Aug 14 16:47 .
        64 0 drwxrwxrwx. 5 root    root  101 Aug 14 15:48 ..
2147491394 4 drwxr-xr-x. 7 polkitd root 4096 Aug 14 16:48 pvc-0d44ea3c-de3d-11ea-a18f-00259056a256
4299069738 0 drwxr-xr-x. 2 root    root    6 Aug 14 16:47 pvc-0d4e1822-de3d-11ea-a18f-00259056a256

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions