in reply to Re^3: can a perl script act as a daemon to serve data in its symbol table?
in thread can a perl script act as a daemon to serve data in its symbol table?

ooh.. that's pretty wild.. hmm...

so for each user.. if they get access to say.. this/path/over/here , make a soft link to that in say... username/here .. oooh....

im getting goosebumps.. that's such a *ix dirty sex trick...

  • Comment on Re^4: can a perl script act as a daemon to serve data in its symbol table?

Replies are listed 'Best First'.
Re^5: can a perl script act as a daemon to serve data in its symbol table?
by tirwhan (Abbot) on Feb 02, 2006 at 18:15 UTC

    :-). It's not that smutty, actually shows how powerful the *NIX file model is. Anyway, the crucial thing about this is that you have an app (the web server) that still regulates access to the files, because the filesystem permissions are useless for that (the user needs permissions to access to the original file in order to access the link). Well, you can do really dirty tricks with directory permissions but that gets no fun really quickly.

    BTW, you may want to use hard instead of soft links for files, because

    1. You can move the original file around without invalidating the link
    2. Deleting the original still leaves your user with access to the linked file, which can be reaped once his directory gets removed again. With hardlinks, an "rm" doesn't remove the file, it just removes one directory entry that points to it (of course, depending on your spec this may actually be a reason for you to go with soft links).

    Dogma is stupid.