Windows Service account permissions questions

Posted on 2006-04-03
Medium Priority
Last Modified: 2010-04-17

I have written a Windows service that uses LocalSystem for the Account property. Not only do I need to be able to access local resources (files and sockets), but I need to be able to open remote files on a server. The LocalSystem account does not give you access to any remote resource. So I tried using the NetworkService account, however that account gives you minimal local resource permissions (basically no IO at all). The regular User account does work, however we can't use that account setting as the application is used for many different users all with their own login accounts. PLus, on install user information would have to be entered at install. There has to be a way to get access to local and remote resources within a Windows service - does anyone know how?

Question by:TravisMS
  • 2
LVL 32

Accepted Solution

jhance earned 750 total points
ID: 16365728
Typically you would create an account on the remote system for the service to use that has the required privileges there.

Expert Comment

ID: 16365786
What about using a group account and assigning all your users to that group.  Use the group credentials to get the access (IO) you need.

Expert Comment

ID: 16365797
The resources you have on your server could be accessed the same way as a user account would access them except the group account would have the same credential access as the user account and the service running on your local system would access the group credentials... comprende?

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Simple Linear Regression
Introduction to Processes

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question