Solved

Windows Service security issue

Posted on 2008-06-09
5
295 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
ID: 21744625
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
ID: 21744662
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
ID: 21744706
Miss read the question thought you were going to add another Local user account. Either way it would work.  
0
 

Author Comment

by:5281
ID: 21745941
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
ID: 21745985
Yes, the file will be accessed under the local System account which gives the service access to the file.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WPF - Tooltips for ComboBox items 5 40
Class object 2 27
Automated testing suggestions? 2 28
How useful is the free version of Selenium? 3 14
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 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

20 Experts available now in Live!

Get 1:1 Help Now