[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Set UID/GID to the azure mount command



Ccing the list

Em 4 de abr de 2016 12:02 PM, "Diego Spinola Castro" <spinolacastro gmail com> escreveu:
Sorry, you are right, files can't get other ownership than default (uid,gid) underneath the mount point.
As the root is mounting, so it owns the files, pods can write because  file_mode and dir_mode are 0777

2016-04-04 11:45 GMT-03:00 Clayton Coleman <ccoleman redhat com>:
At the mount point, or anywhere underneath the mount point?

On Mon, Apr 4, 2016 at 9:39 AM, Diego Spinola Castro
<spinolacastro gmail com> wrote:
> Azure file plugin doesn't  support Unix Permissions, so a pod can't manage
> file ownership at a mountpoint. This is a issue for PostgreSQL images, which
> complains if don't own the files. One alternative is to pass UID,GUID
> parameters at the mount, ex:
>
> mount -t cifs //ENDPOINT /MOUNTPOINT \
> -o vers=3.0,user=USER,password=PASS,\
> UID=<pod_user>,\
> gid=<pod_supplemental_group>,\
> dir_mode=0777,\
> file_mode=0777
>
> Is possible to have this or a similar solution ?
>
>
> Diego
>
> _______________________________________________
> dev mailing list
> dev lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]