help: fail to create file in aufs

Haipeng Wu hwu at rbcon.com
Wed Jan 9 13:36:56 UTC 2013


yes, /tmp/aufs/root is read only, but /tmp/aufs/temp is read-write, so
everything will write into /tmp/aufs/temp

> sudo chmod 700 /tmp/aufs/root/abc     ### here must be 700
if we change 700 to be 711, that will be ok.

haipeng


On Wed, Jan 9, 2013 at 6:37 PM, Patrick Asselman <iceblink at seti.nl> wrote:

> On 2013-01-09 09:55, Haipeng Wu wrote:
>
>> hi,
>>
>> I have met a problem in creating file in aufs, below is the method to
>> reproduce:
>> ------------------------------**----------------
>>
>>  mkdir /tmp/aufs
>> mkdir /tmp/aufs/temp
>>  mkdir /tmp/aufs/mnt
>>
>>  sudo mkdir -p /tmp/aufs/root/abc
>> sudo chmod 700 /tmp/aufs/root/abc     ### here must be 700
>>
>> sudo mount -t aufs -o br:/tmp/aufs/temp=rw:/tmp/**aufs/root=ro+wh none
>> /tmp/aufs/mnt
>>  sudo chmod 777 /tmp/aufs/mnt/abc
>>
>> touch /tmp/aufs/mnt/abc/a   ### failed, permission denied, that's the
>> problem I met
>>
>> ------------------------------**----------------
>>
>> I have met the problem on both ubuntu 10.04 and 12.04.
>> Any suggestions for this issue?
>>
>> thanks,
>> haipeng
>>
>
> I have no knowledge whatsoever on aufs, so I may be completely wrong, but
> it seems to me that you are mounting /tmp/aufs/root with option read-only,
> so any changes you try to do on that mounted file system will of course get
> you the permission denied error.
>
> Best regards,
> Patrick Asselman
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
> mailman/listinfo/ubuntu-users<https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130109/d5f545fa/attachment.html>


More information about the ubuntu-users mailing list