Home All Groups Group Topic Archive Search About

What User/Security Principal Is Needed to Access Network Via Serv

Author
5 Sep 2006 10:03 PM
Marc
I'm building a .NET Windows Service that needs Modify rights on a network
folder.  I'm guessing that running as the Network Service (or Local Service)
account is the way to go, but simply giving this security principal Modify
rights on the folder does not work.  Any recommendations?

Author
6 Sep 2006 1:16 AM
Joe Kaplan
On the remote machine, the network service account will appear as the
machine account, so you'd want to add the domain account for the machine to
the ACL.  Local service doesn't have network credentials, so that isn't a
good choice.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
Show quoteHide quote
"Marc" <M***@discussions.microsoft.com> wrote in message
news:6CE583D8-4C02-420F-B134-7E33E8F949C7@microsoft.com...
> I'm building a .NET Windows Service that needs Modify rights on a network
> folder.  I'm guessing that running as the Network Service (or Local
> Service)
> account is the way to go, but simply giving this security principal Modify
> rights on the folder does not work.  Any recommendations?
Author
6 Sep 2006 7:37 PM
Marc
Thanks, Joe.  That works, but now I've encountered another problem associated
with using NetworkService.  I'll post it in a new thread
"UnauthorizedAccessException When Retrieving COM Class Factory As
NetworkService Account".

Show quoteHide quote
"Joe Kaplan" wrote:

> On the remote machine, the network service account will appear as the
> machine account, so you'd want to add the domain account for the machine to
> the ACL.  Local service doesn't have network credentials, so that isn't a
> good choice.
>
> Joe K.
>
> --
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"
> http://www.directoryprogramming.net
> --
> "Marc" <M***@discussions.microsoft.com> wrote in message
> news:6CE583D8-4C02-420F-B134-7E33E8F949C7@microsoft.com...
> > I'm building a .NET Windows Service that needs Modify rights on a network
> > folder.  I'm guessing that running as the Network Service (or Local
> > Service)
> > account is the way to go, but simply giving this security principal Modify
> > rights on the folder does not work.  Any recommendations?
>
>
>