For the missing uid, I forgot to provide a reference to:

http://code.google.com/p/modwsgi/issues/detail?id=288

Graham

On 26/09/2014, at 10:05 PM, Graham Dumpleton <[email protected]> wrote:

> 
> On 26/09/2014, at 9:11 PM, [email protected] wrote:
> 
>> Hi,
>> 
>> is it possible to pass custom command line arguments to Python interpreter? 
>> I would like to use the '-S' parameter to prevent site module from importing.
>> 
>> The site module prevents Python from working without access to /etc/passwd, 
>> which is denied in my environment, so i need to run it with -S parameter. 
>> Other solution would be to set the 'HOME' environmental variable inside WSGI 
>> process before Python is initialized but i didn't find a way how to do it 
>> (when this env. var. is present, the site module is not touching /etc/passwd 
>> file so everything works fine). Thank you.
> 
> No it isn't possible.
> 
> Disabling site.py may cause a bunch of other issues as far as runtime 
> environment being set up.
> 
> The lack of access to /etc/passwd would cause other problems as well.
> 
> A similar problem arises from case where a uid is not in /etc/passwd.
> 
> What system are you using which doesn't allow access to /etc/passwd? Not 
> having one would cause problems for a lot of UNIX command tools.
> 
> The whole point of /etc/shadow coming about was to take passwords out of 
> /etc/passwd so that access to /etc/passwd wasn't a problem. Go further and 
> removing access to /etc/passwd seems a recipe for disaster.
> 
> Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to