Solved

Windows Service security issue

Posted on 2008-06-09
5
284 Views
Last Modified: 2013-12-17
Is it possible for Windows Service to access/read a file on network without using any domain user account?  For example, put the file is on the same server of Windows Service and run Service from Local System account.  Is it possible?
0
Comment
Question by:5281
  • 3
5 Comments
 
LVL 59

Expert Comment

by:Darius Ghassem
Comment Utility
Yes, it is possible. Are you putting the service on a server or client? The Domain Controllers have the local user accounts disabled.
0
 
LVL 41

Accepted Solution

by:
graye earned 450 total points
Comment Utility
To clarify.... if you put the files on the same server, then you wouldn't actually be using the network to get to the files.   For example, "\\SomeServer\SomeShare\SomeFile" might translate to "D:\SomeDirectory" when viewed from the server.  In that case, the LocalSystem account would have no problem getting to the "real" file location.
0
 
LVL 59

Assisted Solution

by:Darius Ghassem
Darius Ghassem earned 50 total points
Comment Utility
Miss read the question thought you were going to add another Local user account. Either way it would work.  
0
 

Author Comment

by:5281
Comment Utility
I suddenly thought about another issue.  If this file has limited user access, when system administrator install this Windows Service under LocalSystem account, the application can still read the file, right?
0
 
LVL 59

Expert Comment

by:Darius Ghassem
Comment Utility
Yes, the file will be accessed under the local System account which gives the service access to the file.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

8 Experts available now in Live!

Get 1:1 Help Now