My python scrpit access io port and I am facing the issue. 

Any work around for this ?
if I run as sudo, then I get message saying "125 ERROR: You are running 
PyInstaller as user root. This is not supported."
But if I run without root, I get "IOError: [Errno 13] Permission denied". 

Any response is highyl appreciated. 

Thanks

On Thursday, March 28, 2013 3:28:16 AM UTC-7, Joachim Metz wrote:
>
> Ok, thank for your time.
>
> > Yes, and this is one of the reasons why PyInstaller denies running as 
> roof (or fakeroot)
> Apparently I cannot convince you that you'll need to find an alternative 
> approach to really solve this issue, instead of slapping on some (more) 
> restrictions.
>
> Since the current restrictions can be easily bypassed I can always use 
> that technique for now.
>
> On Thursday, March 28, 2013 11:14:06 AM UTC+1, Hartmut Goebel wrote:
>>
>>  Am 28.03.2013 10:31, schrieb Joachim Metz:
>>  
>> Apparently I need to spell it out.
>>
>>  This was largely meant as an example that usercustomize.py can override 
>> most of the python interpreter.
>>
>>
>> Yes, and this is one of the reasons why PyInstaller denies running as 
>> roof (or fakeroot). Since PyInstaller is changing sys.path to run directly 
>> from the download/development directory, an intruder could simply drop in 
>> some module there.
>>
>> Please adopt your build process to not require PyInstaller running as 
>> root/fakeroot. As you already showed, there is a simple work-around, there 
>> is not need to weaken PyInstaller. (NB: I suggest changing the UID in your 
>> build-script instead of hacking arounf with a usercustomize.py. This is 
>> more transparent to builder.)
>>
>> -- 
>>  Schönen Gruß 
>> Hartmut Goebel 
>>  Dipl.-Informatiker (univ), CISSP, CSSLP 
>>
>> Goebel Consult 
>> http://www.goebel-consult.de 
>>
>> Monatliche Kolumne: 
>> http://www.cissp-gefluester.de/2011-11-in-troja-nichts-neues 
>> Blog: http://www.goebel-consult.de/blog/20060920 
>>
>> Goebel Consult ist Mitglied bei http://www.7-it.de/ 
>>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" 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/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to