20 Nov 22:27
Re: Writing to a network share
From: Tim Roberts <timr@...>
Subject: Re: Writing to a network share
Newsgroups: gmane.comp.python.cherrypy
Date: 2008-11-20 21:27:56 GMT
Subject: Re: Writing to a network share
Newsgroups: gmane.comp.python.cherrypy
Date: 2008-11-20 21:27:56 GMT
John Riddle wrote: > Permissions was a guess of mine as well: > WindowsError: [Error 5] Access is denied: '\\\\Myshare\\share\\test' > > If I run anything from a python shell it works fine. The machine my > cherrypy app is on runs logged in as the network admin. > I use mod_python and apache as a service to run cherrypy. It's > initialized with the "serverless" setup to use those. That's the key, then. It doesn't matter who is logged in, or even whether anyone is logged in. Apache is a service, and runs as the "network service" user. That user doesn't belong to the Users group, nor to any of your domain groups, so it doesn't have any permission to access the share. It's a tricky problem. If you weren't using mod_python, you could run the CherryPy service separately and specify a user name for it. It might be possible for you to configure the Apache service this way. In Control Panel, Administrative Tools, run Services. If Apache is listed, you should be able to double-click on it and change the "Log On As" value. If you do, make sure that's what you want -- it means all of your web requests will run as that user. -- -- Tim Roberts, timr@... Providenza & Boekelheide, Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cherrypy-users" group.(Continue reading)
RSS Feed