I have a CGI script that is getting an \"IOError: [Errno 13] Permission denied\" error in the stack trace in the web server\'s error log.
\"IOError: [Errno 13] Permission denied\"
As part of deb
os.getgid() and os.getuid() can be useful. For other environment variables, look into os.getenv. For example, os.getenv('USER') on my Mac OS X returns the username. os.getenv('USERNAME') would return the username on Windows machines.
os.getgid()
os.getuid()
os.getenv
os.getenv('USER')
os.getenv('USERNAME')