[Voyage-linux] Experimenting with voyage-sync

Panagiotis Malakoudis (spam-protected)
Mon Feb 16 18:29:20 HKT 2009


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.

On Mon, Feb 16, 2009 at 12:17 PM, Russell Lang <gsview at ghostgum.com.au>wrote:

> Panagiotis,
>
> If I do
>  /etc/init.d/voyage-sync stop
>  chown www-data /var/www
> then reboot, I find that /var/www is owned by root again.
>
> Permissions of subdirectories within /var/www retain their correct
> ownership.
>
> So punkytse's method of making /home be an aufs filesystem works, but not
> your method of making an individual home directory by an aufs filesystem.
>
> There appears to be a problem with voyage-sync script setting the aufs
> mounted
> directory to the correct owner.
>
> Russell
>
> On 16 Feb 2009 at 9:58, Panagiotis Malakoudis wrote:
>
> > Well, that indeed works because /home is owned by root. But if I only
> want
> > to have the /home/someuser/somefolder, owned by someuser, inside tmpfs,
> then
> > after aufs mount, it is no longer owned by someuser but by root instead.
> > Currently I fixed this by chowning from rc.local, but I was wondering if
> > there is a more elegant solution.
> >
> >
> > On Mon, Feb 16, 2009 at 7:58 AM, Kim-man 'Punky' TSE
> > <punkytse at punknix.com>wrote:
> >
> > > Hi,
> > >
> > > I have no problem in adding a new user and make the whole /home managed
> by
> > > tmpfs + aufs.
> > > Make sure you have the latest voyage-sync script, which is available
> here:
> > >
> > >
> http://voyage.hk:8080/repos/voyage/trunk/voyage-live/config/chroot_local-includes/etc/init.d/voyage-sync
> > >
> > > Regards,
> > > Punky
> > >
> > > Panagiotis Malakoudis wrote:
> > >
> > >> I've been experimenting a little with the voyage-sync script. For an
> > >> application of mine, I wanted to have some folders of the home
> directory of
> > >> a specific user inside the tmpfs. I added the folder in the
> > >> /etc/default/voyage-util and it is copied correctly, but the problem
> is that
> > >> the folder after the aufs mount is owned by root and not by user. Is
> there
> > >> any way to change this (apart from chowning after mount) ?
> > >>
> > >> Also, if you use dhcp3-server or dhcp3-client, you also need to put
> > >> /lib/dhcp3 in the voyage-sync folders. Since quite a few people might
> use
> > >> these services, it would be nice to have this from the installation.
> > >>
> > >>
> ------------------------------------------------------------------------
> > >>
> > >> _______________________________________________
> > >> Voyage-linux mailing list
> > >> Voyage-linux at list.voyage.hk
> > >> http://list.voyage.hk/mailman/listinfo/voyage-linux
> > >>
> > >>
> > >
> > >
> > > --
> > > Regards,
> > > Punky
> > >
> > > Voyage Solutions (http://solution.voyage.hk)
> > > * Embedded Solutions and Systems
> > >  - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
> > >  - Network Engineering, Development Platform and Consultation
> > >
> > >
> > >
> >
>
>
> Russell Lang                   gsview at ghostgum.com.au
> Ghostgum Software Pty Ltd      http://www.ghostgum.com.au/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20090216/a3853b17/attachment.html>


More information about the Voyage-linux mailing list