Results 1 to 2 of 2

Thread: Windows NT Service: Security

  1. #1

    Thread Starter
    Hyperactive Member Foxer's Avatar
    Join Date
    Oct 2001
    Location
    Australia
    Posts
    278

    Windows NT Service: Security

    I've created a service that needs to run on server B, read a file from Server A and then reformat the file and output it in XML format on Server C.

    So I'm reading a file from one server and writing a file to another server. Both Win2K. Developed on WinXP with VB.Net.

    The workstation I develop on is logged in as administrator and I have access to both source and destination.

    I compile without a hitch.

    I use installutil to install the program and it installs fine. I can start the service and the event log says the service started.

    The service runs every 60 seconds so I wait but nothing happens. No error message in the event log but I do get some security thingies.
    Event Type: Success Audit
    Event Source: Security
    Event Category: Logon/Logoff
    Event ID: 528
    Date: 23/06/2004
    Time: 2:16:44 PM
    User: NT AUTHORITY\NETWORK SERVICE
    Computer: F6L161S
    Description:
    Successful Logon:
    User Name: NETWORK SERVICE
    Domain: NT AUTHORITY
    Logon ID: (0x0,0x3E4)
    Logon Type: 5
    Logon Process: Advapi
    Authentication Package: Negotiate
    Workstation Name:
    Logon GUID: {00000000-0000-0000-0000-000000000000}

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    I then get too more negative messages in the event viewer :-

    Event Type: Failure Audit
    Event Source: Security
    Event Category: Object Access
    Event ID: 560
    Date: 23/06/2004
    Time: 2:16:44 PM
    User: NT AUTHORITY\NETWORK SERVICE
    Computer: F6L161S
    Description:
    Object Open:
    Object Server: Security
    Object Type: Section
    Object Name: \BaseNamedObjects\SharedPerfIPCBlock
    Handle ID: -
    Operation ID: {0,3232163}
    Process ID: 3680
    Image File Name: C:\My Documents\ERTServers\bin\ERTServers.exe
    Primary User Name: NETWORK SERVICE
    Primary Domain: NT AUTHORITY
    Primary Logon ID: (0x0,0x3E4)
    Client User Name: -
    Client Domain: -
    Client Logon ID: -
    Accesses: DELETE
    READ_CONTROL
    WRITE_DAC
    WRITE_OWNER
    Query section state
    Map section for write
    Map section for read

    Privileges: -
    Restricted Sid Count: 0


    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    I don't know what a failed security audit means, if it is relevant, if it relates to my service having a "NETWORK SERVICE" account type or why my service appears to not function - or do anything really.

    I know **NOTHING** of NT Security and domains, admistrator accounts etc so it may be something super simple.
    Rate my response if I helped

    Go Hard Or Go Home


  2. #2

    Thread Starter
    Hyperactive Member Foxer's Avatar
    Join Date
    Oct 2001
    Location
    Australia
    Posts
    278
    I've put some "checkpoints" in my code that writes to the event log.

    It seems my timer event isn't firing - ever.

    I have a 6000 millisecond timer that is enabled but it never seems to fire, therefore my service does nothing.

    My MAIN sub has the default gruff in it - I've added nothing to it.

    Code:
    ServicesToRun = New System.ServiceProcess.ServiceBase() {New ERTServers()}
    
    System.ServiceProcess.ServiceBase.Run(ServicesToRun)
    I have a timer call that is standard :-

    Code:
    Private Sub tmrWriteXML_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrWriteXML.TickceBase.Run(ServicesToRun)
    Any clues why my timer isn't timing?

    It installs/starts/stops okay but.
    Rate my response if I helped

    Go Hard Or Go Home


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width