[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Limit scripts access to directory only
- From: Jan Schütze <JanS@...>
- Date: Fri, 04 May 2007 18:59:27 +0200
Bertrand Mansion schrieb:
Le 4 mai 07 à 09:13, Jan Schütze a écrit :
there was something like my problem in the list before , but I got
a different problem with this.
Since we want to host different lua-websites on my server, we want to
limit the users' script access to his own directory only.
Currently it is possible with lua to do the following:
So an other user is able to access this directory and its content. If
all scripts would run with the same user account, he maybe would be
even able to write the files!
Of course I am aware of the fact that you could use multiple accounts
on windows or chroot on *nix (copying/symlinking the binaries, needed
here), this would be lots of work for admins to create a new user.
The soloution at the post from September 2003  is not what I
wanted, because its possible to overwrite the functions again, or am
Is there any compile option or powerpatch available to add this base
dir limit for scripts?
Page 49 in the "Programming in Lua" manual, they give a good example
on how to create sandboxes for your problem.
Page 50 explains what's cool about the given example.
This is a good read, I bought the book and I loved it (and the cover
is cool :)).
Thanks for the hint.
This makes it really secure (at least for the basic library, modules can
do whatever they want, can't they?).