Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Server Security > Re: access file shares from a service

Reply
Thread Tools Display Modes

Re: access file shares from a service

 
 
Al Dunbar
Guest
Posts: n/a

 
      05-14-2009

"Chris Curvey" <> wrote in message
news:40507413-c484-4258-8390-...
> I'm trying to get access to a file share from a subprocess within a
> windows service. Within my service, I launch another process that
> runs an executable.
>
> This works:
>
> dir c:\ > c:\foobar.txt
>
> this works if I run it through a command window, but fails if I run it
> through my service. (I am having trouble capturing the error message,
> I'm tracking that down separately.)
>
> dir j:\ > c:\foobar.txt
>
> I am logged on as MYDOMAIN\ccurvey, and the server is running as
> MYDOMAIN\ccurvey (I had to grant that account "log in as a service").
>
> Can I do what I'm trying to do with domain accounts, or do I have to
> create local accounts on the two machines?


The service account under whose credentials the service runs needs to have
appropriate access to any resources the service needs to work with.

/Al


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN access to network file shares JPL Windows Small Business Server 9 06-20-2008 12:50 PM
Stop access to file shares on other PCs ejweston Active Directory 3 11-28-2006 09:00 PM
access to file shares etc. throuhg web access Jernej Windows Server 0 01-18-2006 07:49 AM
XP Client slow access to SBS file shares Matt Windows Small Business Server 1 05-27-2005 11:10 AM
win 98 file access (shares) Jack Server Networking 1 03-06-2004 08:46 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59