[ 
https://issues.apache.org/jira/browse/MESOS-9475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719918#comment-16719918
 ] 

Qian Zhang commented on MESOS-9475:
-----------------------------------

Actually the task has the write permission to the root dir of the PV since we 
change the owner of the PV's root dir to the task user in `filesystem/linux` 
isolator, but we just do the `chown` for the root dir rather than recursively 
for all the sub-dirs/files in the PV, so that's why the task cannot write to 
the sub-dir which is still owned by root.

> Task launched with non-root user cannot write to existing sub-dirs/files in 
> persistent volume
> ---------------------------------------------------------------------------------------------
>
>                 Key: MESOS-9475
>                 URL: https://issues.apache.org/jira/browse/MESOS-9475
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Qian Zhang
>            Priority: Major
>
> Reproduce steps:
> 1. Create a PV via `/master/create-volumes`.
> 2. Log into the agent host with root and manually create a sub-dir under the 
> PV.
> 3. Launch a task with a non-root user to touch a file under that sub-dir in 
> the PV.
> The task failed because it has no write permission to the sub-dir.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to