Windows Service account permissions questions

Posted on 2006-04-03
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
    LVL 32

    Accepted Solution

    Typically you would create an account on the remote system for the service to use that has the required privileges there.
    LVL 4

    Expert Comment

    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.
    LVL 4

    Expert Comment

    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

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Cisco switch with no IOS installed 2 46
    Windows 7 will not update 10 114
    Sql how to exclude from a table 3 61
    countX 22 53
    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    This article will show, step by step, how to integrate R code into a R Sweave document
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now