[Haifux] Simulated permissions on VFAT

Alon Altman alon at 8ln.org
Thu Feb 7 00:55:49 MSK 2008


Another option (poor man's fakeroot) is to write a script that uses
'find' to create a script that restores the permissions.

  Alon

On 2/6/08, Alon Altman <stanford at 8ln.org> wrote:
> What is the problem using fakeroot either as your own user or as root?
> You can always mount the dok with user permissions.
>
> Did you try to look for UFS implementations that do what you want? It
> seems similar to Virtualbox's virtual HD.
>
> I also don't see the problem with just making a complete copy. How
> slow/large is your DoK?
>
>   Alon
>
> On 2/6/08, Ohad Lutzky <ohad at lutzky.net> wrote:
> > On Feb 6, 2008 8:48 PM, Alon Altman <epsalon at stanford.edu> wrote:
> > > Several options I see:
> > >  - loopmount a file and format it to ext2 or similar (you need to
> > > specify constant size in advance).
> >
> > I'd like a similar solution to this without constant size. Constant
> > size is a big problem for me.
> >
> > >  - Use UMSDOS which should allow permissions in a FAT-compatible
> > > filesystem. Note it's FAT and not VFAT.
> >
> > I'd like something to be mounted as-is on the filesystem, IIRC umsdos
> > uses specific userland tools to manipulate files.
> >
> > >  - Use fakeroot with its persistence option to save the environment to
> > > a file. I'm not sure if this will work but the idea is fakeroot
> > > maintains permissions that you are not actually allowed to change.
> >
> > This is an interesting solution, but I can't get fakeroot to run as my
> > user, and it seems like too much of a kludge to actually try and do it
> > as root.
> >
> > >
> > >   Alon
> > >
> > >
> > > On 2/6/08, Ohad Lutzky <ohad at lutzky.net> wrote:
> > > > Hi everybody,
> > > > I'm trying to use my DoK for various things which are sensitive to the
> > > > executable (chmod +/-x) bit. As I want to be able to use this DoK on
> > > > Windows systems as well, it's formatted to VFAT (NTFS is also an
> > > > option, thanks to ntfs-3g). Is there any way to get any form of
> > > > "simulated" permission bits for the file system, which Linux will take
> > > > heed of? (For example, an option to a VFAT filesystem module which will
> > > > read/write such permission data to dotfiles in each directory, and
> > > > subsequently hide those files from me).
> > > >
> > > > Mac discussions talk about a "Sparse filesystem" - I imagine that what
> > > > they mean is a filesystem-in-a-file, which expands and shrinks to
> > > > accomodate its contents. This would work well too.
> > >
> > > > _______________________________________________
> > > > Haifux mailing list
> > > > Haifux at haifux.org
> > > > http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux
> > > >
> > >
> >
> >
> >
> > --
> > Man is the only animal that laughs and weeps, for he is the only
> > animal that is struck with the difference between what things are and
> > what they ought to be.
> >  - William Hazlitt
> >
> > Ohad Lutzky
> >
>



More information about the Haifux mailing list