DBaccessError when switching which user 'runs' the spyce server
"Jason Persampieri" <[email protected]> Wed, 9 Jan 2008 00:14:54 -0500
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1028177121== Content-Type: multipart/alternative; boundary="----=_Part_5813_1845705.1199855694687" ------=_Part_5813_1845705.1199855694687 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline So, I just figured out a problem that's been bugging me for a bit. I was trying to run the spyce server as apache instead of root (for security and consistent file access permissions in spyce-based vs apache-based webservers), and I would keep getting a DBAccessError when I called * spyce.include*. It turns out that the spyce server was using the same 'spysession' temp file for the two runs. And seeing as how it was initially created as 'root', the measly 'apache' user couldn't access it. Is this by design? It seems like the server should start a new session file every time it's run, yes? _jason ------=_Part_5813_1845705.1199855694687 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline So, I just figured out a problem that's been bugging me for a bit.<br><br>I was trying to run the spyce server as apache instead of root (for security and consistent file access permissions in spyce-based vs apache-based webservers), and I would keep getting a DBAccessError when I called <i>spyce.include</i>.<br><br>It turns out that the spyce server was using the same 'spysession' temp file for the two runs. And seeing as how it was initially created as 'root', the measly 'apache' user couldn't access it. Is this by design? It seems like the server should start a new session file every time it's run, yes? <br><br>_jason<br><br> ------=_Part_5813_1845705.1199855694687-- --===============1028177121== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace --===============1028177121== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Spyce-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spyce-users --===============1028177121==--