1

The Windows Service application I deploy on Windows Server 2003 needs to access network resources as well as the usb tokens I plug in. When I use local system account I can access the usb but not the network files. And with the other user option I cannot access the usb. Is there a way to access both at the same time?

artsince
  • 111
  • 2

1 Answers1

1

You should have the service run as a domain user account, grant proper permissions on network resources to that account, and make it a local administrator (or just give it proper NTFS permissions) on the server it's running on.

Alternatively, you can have your service running as LocalSystem, but then it will have full control on the server, and to grant it access to network resources you'll need to assign permissions to the server's computer account in the domain.

I strongly suggest the first option.

Massimo
  • 68,714
  • 56
  • 196
  • 319
  • 1
    Use the domain account with the proper credentials- localsystem opens up a whole other can o' security worms – Jim B Apr 27 '10 at 13:30
  • I like the image of the "can of security worms"... the word "worm" is also really appropriate :-p – Massimo Apr 27 '10 at 13:34