Windows Service asking for Service Login

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tshad

    Windows Service asking for Service Login

    I am setting up a Windows Service at a clients site and a window comes up:

    Set Service Login

    that asks for UserName and Password.

    Is this the credentials that the service will logon as or maybe to install
    the service?

    How do I get it to use the login I am logged in on?

    I am the administrator on this machine.

    Thanks,

    Tom


  • =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?=

    #2
    Re: Windows Service asking for Service Login

    tshad wrote:
    I am setting up a Windows Service at a clients site and a window comes up:
    >
    Set Service Login
    >
    that asks for UserName and Password.
    >
    Is this the credentials that the service will logon as or maybe to install
    the service?
    >
    How do I get it to use the login I am logged in on?
    >
    I am the administrator on this machine.
    >
    Thanks,
    >
    Tom
    >
    >
    A service runs all the time, and needs a specific username context to
    run under, it can't run under "whoever is logged on at any given time".
    If you want that kind of security, make the program auto-start when the
    user logs on instead, and not a service.

    If you're the administrator of the machine, and wants the service to
    have your access rights, specify your own username and password for it.

    Typically though you would create a new user specifically for the
    service with the correct access rights according to what it needs to do.

    --
    Lasse Vågsæther Karlsen
    mailto:lasse@vk arlsen.no
    Blogger ist ein Veröffentlichungs-Tool von Google, mit dem du ganz einfach deine Gedanken der Welt mitteilen kannst. Mit Blogger kannst du problemlos Texte, Fotos und Videos in deinem persönlichen Blog oder deinem Team-Blog veröffentlichen.

    PGP KeyID: 0xBCDEA2E3

    Comment

    • Chirag Bhavsar

      #3
      Windows Service asking for Service Login

      Change the Account for the serviceProcessI nstaller to LocalSystem. It can be done by opening ProjectInstalle r design and selecting serviceProcessI nstaller, properties and change the account property to LocalSystem or manually create the file as previously posted.

      Comment

      • Marc Gravell

        #4
        Re: Windows Service asking for Service Login

        Change the Account for the serviceProcessI nstaller to LocalSystem

        I'd be cautious of doing this personally... network service / local service
        are quite good choices for simple scenarios, since they have restricted
        access... if a dedicated domain account is needed for some ACLs, then run as
        that user... but local system should be used with caution. It is very rare
        that a service needs that level of privelege. As a general rule, any app
        should have only the priveleges it needs...

        Marc


        Comment

        Working...