Re: 2nd opinion? - Windows service app development
- From: "Alex Clark" <quanta@xxxxxxxxxxxxxxx>
- Date: Sat, 12 Jul 2008 16:06:57 -0500
I would say you'd be better off running under the account of least
privelege, as long as your service will still work. Is there any reason
you'd need LocalSystem privs (i.e. higher even than an administrator)?
I would configure a custom action in the installer so that it automatically
grants LocalService access to the directory it watches, and run it under
that. Search the MS webby for a description of the privs granted to
LocalService also, you might find there's something in there that's too
restrictive, but I doubt it.
There are very few apps these days that genuinely need Admin privs to run,
let alone anything higher, but your best option is to research and find out
exactly what you need.
-Alex
"B. Chernick" <BChernick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:287BA440-8E76-4EE8-937E-42EFCF1F4DE1@xxxxxxxxxxxxxxxx
I have not touched a Windows Service app since my MCAD certs (about 5 years
ago...) I've just been assigned to write a quickie app. I could use a
2nd
opinion here.
The app is to be written in Dot Net 2.0 (VB). Probably all it will do is
monitor a directory (at intervals controled by a timer), do some stuff
with
text files, and ftp text files to an ftp. I believe I've successfully
tested
most of the techniques I'll be using but I was wondering about the status
of
the ServiceProcessInstaller's Account setting. 'LocalSystem' seems to
works
fine. "LocalService' works fine as well, if I give 'Local Service' full
access to the directory.
So I suppose my question is, given the above, should I prefer using
"LocalSystem" or "LocalService"? (Are there any 'gotchas' with either in
a
situation like this?)
.
- Follow-Ups:
- Re: 2nd opinion? - Windows service app development
- From: B. Chernick
- Re: 2nd opinion? - Windows service app development
- Prev by Date: Re: Have I found a bug in VB.Net 2005 ADOX.Catalog?
- Next by Date: Re: Have I found a bug in VB.Net 2005 ADOX.Catalog?
- Previous by thread: Have I found a bug in VB.Net 2005 ADOX.Catalog?
- Next by thread: Re: 2nd opinion? - Windows service app development
- Index(es):
Relevant Pages
|