I chown to the required user after voyage-sync start (after the aufs mount) and this works for me. But I would prefer an option to check the permissions/ownership of the mounted directory and apply those permissions after the aufs mount. This already works (with the chown --reference and chmod --reference) for all subdirectories. It just doesn't work for the top level directory where aufs is mounted.<br>
<br><div class="gmail_quote">On Mon, Feb 16, 2009 at 12:17 PM, Russell Lang <span dir="ltr"><<a href="mailto:gsview@ghostgum.com.au">gsview@ghostgum.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Panagiotis,<br>
<br>
If I do<br>
/etc/init.d/voyage-sync stop<br>
chown www-data /var/www<br>
then reboot, I find that /var/www is owned by root again.<br>
<br>
Permissions of subdirectories within /var/www retain their correct ownership.<br>
<br>
So punkytse's method of making /home be an aufs filesystem works, but not<br>
your method of making an individual home directory by an aufs filesystem.<br>
<br>
There appears to be a problem with voyage-sync script setting the aufs mounted<br>
directory to the correct owner.<br>
<br>
Russell<br>
<div><div></div><div class="Wj3C7c"><br>
On 16 Feb 2009 at 9:58, Panagiotis Malakoudis wrote:<br>
<br>
> Well, that indeed works because /home is owned by root. But if I only want<br>
> to have the /home/someuser/somefolder, owned by someuser, inside tmpfs, then<br>
> after aufs mount, it is no longer owned by someuser but by root instead.<br>
> Currently I fixed this by chowning from rc.local, but I was wondering if<br>
> there is a more elegant solution.<br>
><br>
><br>
> On Mon, Feb 16, 2009 at 7:58 AM, Kim-man 'Punky' TSE<br>
> <<a href="mailto:punkytse@punknix.com">punkytse@punknix.com</a>>wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I have no problem in adding a new user and make the whole /home managed by<br>
> > tmpfs + aufs.<br>
> > Make sure you have the latest voyage-sync script, which is available here:<br>
> ><br>
> > <a href="http://voyage.hk:8080/repos/voyage/trunk/voyage-live/config/chroot_local-includes/etc/init.d/voyage-sync" target="_blank">http://voyage.hk:8080/repos/voyage/trunk/voyage-live/config/chroot_local-includes/etc/init.d/voyage-sync</a><br>
> ><br>
> > Regards,<br>
> > Punky<br>
> ><br>
> > Panagiotis Malakoudis wrote:<br>
> ><br>
> >> I've been experimenting a little with the voyage-sync script. For an<br>
> >> application of mine, I wanted to have some folders of the home directory of<br>
> >> a specific user inside the tmpfs. I added the folder in the<br>
> >> /etc/default/voyage-util and it is copied correctly, but the problem is that<br>
> >> the folder after the aufs mount is owned by root and not by user. Is there<br>
> >> any way to change this (apart from chowning after mount) ?<br>
> >><br>
> >> Also, if you use dhcp3-server or dhcp3-client, you also need to put<br>
> >> /lib/dhcp3 in the voyage-sync folders. Since quite a few people might use<br>
> >> these services, it would be nice to have this from the installation.<br>
> >><br>
> >> ------------------------------------------------------------------------<br>
> >><br>
> >> _______________________________________________<br>
> >> Voyage-linux mailing list<br>
> >> <a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
> >> <a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
> >><br>
> >><br>
> ><br>
> ><br>
> > --<br>
> > Regards,<br>
> > Punky<br>
> ><br>
> > Voyage Solutions (<a href="http://solution.voyage.hk" target="_blank">http://solution.voyage.hk</a>)<br>
> > * Embedded Solutions and Systems<br>
> > - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX<br>
> > - Network Engineering, Development Platform and Consultation<br>
> ><br>
> ><br>
> ><br>
><br>
<br>
<br>
</div></div><font color="#888888">Russell Lang <a href="mailto:gsview@ghostgum.com.au">gsview@ghostgum.com.au</a><br>
Ghostgum Software Pty Ltd <a href="http://www.ghostgum.com.au/" target="_blank">http://www.ghostgum.com.au/</a><br>
<br>
</font></blockquote></div><br>