[Lula] Linux file system question

TheBlueSage tbs at bsvn.net
Thu Nov 1 11:17:20 EDT 2007


Hi Folks,

I thought this would be very easy under linux/unix, but even after
googling I cant seem to find an answer... I cant believe this is not
simple :)

Here is the conundrum ... I would like to know if it is possible to
achieve the following :

setup:
----------
create two directories, 'foo', and 'bar' in say '/home/someone'.

put 2 text files in 'foo', called text1.txt and text2.txt

put 2 text files in 'bar' called text3.txt and text4.txt

problem
------------
I need to create a 'symlink' or something somehow, so that the contents
of foo show up in bar, but the contents of bar do not show up in foo.
E.G. 

thus when I do an 'ls' of 'foo' I see :
text1.txt
text2.txt

but when I do an 'ls' of 'bar' I see :
text1.txt
text2.txt
text3.txt
text4.txt

The reason is that I have people submitting templates for a template
system. The main system reads these templates from a common directory,
but I want people to submit their templates to their own individual
directories so that they can only see/add to/delete their own templates
and not anyone elses. an 'ls' of the 'real' template directory would
show the contents of the container directory *and* the contents of the
other peoples directories..... 

am I missing something here ? or is this just impossible without using a
programatic solution ?

Richard



More information about the Lula mailing list