473,320 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

win service security question

Tom
hello

there's something that I don't understand

what is the difference between running a service in say User context and
LocalService security context ?

and what is the difference between NetworkService and LocalSystem ?

those two are a little confusing could you explain in english please :P
thanks

Tom
Nov 16 '05 #1
2 1348
Running as a user, it acts as if it was that user - i.e. the operating system
grants permissions to it as if it was that user. I wouldn't say this was a
particularly good idea, because that user might not exist when the service is
still required, and I'm sure there's a whole host of other reasons I can't
think of.
Services could run under the LocalService account (the default), but that
doesn't have particularly great permissions. If you need higher permissions
(but only if), to do things like modifying files, then you should use the
LocalSystem account, which is still a generic account for services, but has
better permissions than LocalService. But that said, use LocalService (which
is the default) if it allows you to do all you need to.
"Tom" wrote:
hello

there's something that I don't understand

what is the difference between running a service in say User context and
LocalService security context ?

and what is the difference between NetworkService and LocalSystem ?

those two are a little confusing could you explain in english please :P
thanks

Tom

Nov 16 '05 #2
Tom
ahh

thanks
"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
Running as a user, it acts as if it was that user - i.e. the operating system grants permissions to it as if it was that user. I wouldn't say this was a
particularly good idea, because that user might not exist when the service is still required, and I'm sure there's a whole host of other reasons I can't
think of.
Services could run under the LocalService account (the default), but that
doesn't have particularly great permissions. If you need higher permissions (but only if), to do things like modifying files, then you should use the
LocalSystem account, which is still a generic account for services, but has better permissions than LocalService. But that said, use LocalService (which is the default) if it allows you to do all you need to.
"Tom" wrote:
hello

there's something that I don't understand

what is the difference between running a service in say User context and
LocalService security context ?

and what is the difference between NetworkService and LocalSystem ?

those two are a little confusing could you explain in english please :P
thanks

Tom

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Eric Chong | last post by:
I created a Windows Service in C# that requires to get passed command arguments like a Console App. I noticed that there is an option "Start parameters" text box in the property of a Windows...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
2
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
17
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
3
by: Grant Schenck | last post by:
I have a simple remoting sample using IPCChannel. If I run the server code as a console app my client can connect just fine. However, if I the same server code runs in a service, the client gets...
4
by: Don Curtis | last post by:
If I use GDI+ within a service, what problems can I expect? Why can't GDI+ be used within a service? http://msdn2.microsoft.com/en-us/library/system.drawing.aspx "Classes within the...
16
by: sunil | last post by:
Hi, I have a service written in c# that I need to run as a "Network Service". I am using a setup project to install the service. If I install the service in User's Personal Folder, I get the...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
41
by: pbd22 | last post by:
Hi. I know my windows service works when i run it in debug mode on my dev machine. It also works in release mode on my dev machine. But, when I move the service to a production server, it...
3
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.