lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Björn,

On Mon, Jul 15, 2002 at 07:34:52PM +0200, Björn De Meyer wrote:
> Oops! I retract my previous message! 
> There's still a bit of a hole left! 
> 
> print(getenv("USER"));
> 
> Run using lua generates:
> 
> root

are you sure that this variable is not inherited from the Apache
environment?  In many configurations Apache typically runs a process
as root and drops the privileges once it accepts an HTTP connection.

The right way to find out is to use geteuid().

If the effective user id is indeed root, this would look like a
gross oversight by the sourceforge admins. I think that rather
unlikely.

- Christian