Solved

Windows Service security issue

Posted on 2008-06-09
5
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

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.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

749 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