Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Server Security > Logging server log on/off only (not domain)

Reply
Thread Tools Display Modes

Logging server log on/off only (not domain)

 
 
Barkley Bees
Guest
Posts: n/a

 
      10-26-2009
We want to log all local and remote desktop log on/off events (sucesses &
failures) of our servers for auditing purposes. We do not, however, wish to
log domain authentication or file/folder accesses at this time.

With the above in mind, I had initially thought we could enabled "Audit
Logon events" on each server via group policy. After having done some poking
around however, it appears that this setting will also log any access to
resources of a server with this enabled (not just logon/off). Can anyone
suggest a practical way to implement this. Is it possible via the standard
local policies or is a 3rd party tool required? Appreciate any
feedback/advice. Thanks.


 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      10-26-2009


"Barkley Bees" <> wrote in message
news:...
> We want to log all local and remote desktop log on/off events (sucesses &
> failures) of our servers for auditing purposes. We do not, however, wish
> to log domain authentication or file/folder accesses at this time.
>
> With the above in mind, I had initially thought we could enabled "Audit
> Logon events" on each server via group policy. After having done some
> poking around however, it appears that this setting will also log any
> access to resources of a server with this enabled (not just logon/off).
> Can anyone suggest a practical way to implement this. Is it possible via
> the standard local policies or is a 3rd party tool required? Appreciate
> any feedback/advice. Thanks.


You probably have to invoke your own logon/logoff script via the local
policy. The logon script could look like this:
@echo off
if /i not %UserDomain%==%ComputerName% goto :eof
if /i %SessionName%==Console (set Session=Local) else (set Session=TS)
echo %date% %time:~0,5% %UserName% Session type=%Session% Event=logon >>
d:\Logs\Serverlogs.log

The logoff script would be much the same.


 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      10-26-2009

"Pegasus [MVP]" <> wrote in message
news:#...
>
> "Barkley Bees" <> wrote in message
> news:...
>> We want to log all local and remote desktop log on/off events (sucesses &
>> failures) of our servers for auditing purposes. We do not, however, wish
>> to log domain authentication or file/folder accesses at this time.
>>
>> With the above in mind, I had initially thought we could enabled "Audit
>> Logon events" on each server via group policy. After having done some
>> poking around however, it appears that this setting will also log any
>> access to resources of a server with this enabled (not just logon/off).
>> Can anyone suggest a practical way to implement this. Is it possible via
>> the standard local policies or is a 3rd party tool required? Appreciate
>> any feedback/advice. Thanks.

>
> You probably have to invoke your own logon/logoff script via the local
> policy. The logon script could look like this:
> @echo off
> if /i not %UserDomain%==%ComputerName% goto :eof
> if /i %SessionName%==Console (set Session=Local) else (set Session=TS)
> echo %date% %time:~0,5% %UserName% Session type=%Session% Event=logon >>
> d:\Logs\Serverlogs.log
>
> The logoff script would be much the same.


While a useful technique (that I have also used), I have made it clear to
management that this is not really an auditing tool. The users all have
read/write access to the log file, and could modify it to meet their needs,
whether to hide their own tracks or to point the finger of blame at someone
else.

/Al


 
Reply With Quote
 
Barkley Bees
Guest
Posts: n/a

 
      10-27-2009

"Al Dunbar" <> wrote in message
news:%23%...
>
> "Pegasus [MVP]" <> wrote in message
> news:#...
>>
>> "Barkley Bees" <> wrote in message
>> news:...
>>> We want to log all local and remote desktop log on/off events (sucesses
>>> & failures) of our servers for auditing purposes. We do not, however,
>>> wish to log domain authentication or file/folder accesses at this time.
>>>
>>> With the above in mind, I had initially thought we could enabled "Audit
>>> Logon events" on each server via group policy. After having done some
>>> poking around however, it appears that this setting will also log any
>>> access to resources of a server with this enabled (not just logon/off).
>>> Can anyone suggest a practical way to implement this. Is it possible via
>>> the standard local policies or is a 3rd party tool required? Appreciate
>>> any feedback/advice. Thanks.

>>
>> You probably have to invoke your own logon/logoff script via the local
>> policy. The logon script could look like this:
>> @echo off
>> if /i not %UserDomain%==%ComputerName% goto :eof
>> if /i %SessionName%==Console (set Session=Local) else (set Session=TS)
>> echo %date% %time:~0,5% %UserName% Session type=%Session% Event=logon >>
>> d:\Logs\Serverlogs.log
>>
>> The logoff script would be much the same.

>
> While a useful technique (that I have also used), I have made it clear to
> management that this is not really an auditing tool. The users all have
> read/write access to the log file, and could modify it to meet their
> needs, whether to hide their own tracks or to point the finger of blame at
> someone else.
>
> /Al



Thanks Pegasus, but I'm afraid I must agree with Al in that I don't think it
would pass for our auditing needs (need to run it by management though). Are
you using this type of script yourself?
Has anyone implemented any auditing technique for logging administrator log
on/off's for servers? If so, how did you do it?


 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      10-27-2009

"Barkley Bees" <> wrote in message
news:...
>
> "Al Dunbar" <> wrote in message
> news:%23%...
>>
>> "Pegasus [MVP]" <> wrote in message
>> news:#...
>>>
>>> "Barkley Bees" <> wrote in message
>>> news:...
>>>> We want to log all local and remote desktop log on/off events (sucesses
>>>> & failures) of our servers for auditing purposes. We do not, however,
>>>> wish to log domain authentication or file/folder accesses at this time.
>>>>
>>>> With the above in mind, I had initially thought we could enabled "Audit
>>>> Logon events" on each server via group policy. After having done some
>>>> poking around however, it appears that this setting will also log any
>>>> access to resources of a server with this enabled (not just logon/off).
>>>> Can anyone suggest a practical way to implement this. Is it possible
>>>> via the standard local policies or is a 3rd party tool required?
>>>> Appreciate any feedback/advice. Thanks.
>>>
>>> You probably have to invoke your own logon/logoff script via the local
>>> policy. The logon script could look like this:
>>> @echo off
>>> if /i not %UserDomain%==%ComputerName% goto :eof
>>> if /i %SessionName%==Console (set Session=Local) else (set Session=TS)
>>> echo %date% %time:~0,5% %UserName% Session type=%Session% Event=logon >>
>>> d:\Logs\Serverlogs.log
>>>
>>> The logoff script would be much the same.

>>
>> While a useful technique (that I have also used), I have made it clear to
>> management that this is not really an auditing tool. The users all have
>> read/write access to the log file, and could modify it to meet their
>> needs, whether to hide their own tracks or to point the finger of blame
>> at someone else.
>>
>> /Al

>
>
> Thanks Pegasus, but I'm afraid I must agree with Al in that I don't think
> it would pass for our auditing needs (need to run it by management
> though). Are you using this type of script yourself?
> Has anyone implemented any auditing technique for logging administrator
> log on/off's for servers? If so, how did you do it?


I forgot to mention that there are ways of preventing the running of a logon
script. What you need is something bulletproof, and I've never met a logon
script that could qualify...

/Al


 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      10-27-2009


"Barkley Bees" <> wrote in message
news:...
>
> "Al Dunbar" <> wrote in message
> news:%23%...
>>
>> "Pegasus [MVP]" <> wrote in message
>> news:#...
>>>
>>> "Barkley Bees" <> wrote in message
>>> news:...
>>>> We want to log all local and remote desktop log on/off events (sucesses
>>>> & failures) of our servers for auditing purposes. We do not, however,
>>>> wish to log domain authentication or file/folder accesses at this time.
>>>>
>>>> With the above in mind, I had initially thought we could enabled "Audit
>>>> Logon events" on each server via group policy. After having done some
>>>> poking around however, it appears that this setting will also log any
>>>> access to resources of a server with this enabled (not just logon/off).
>>>> Can anyone suggest a practical way to implement this. Is it possible
>>>> via the standard local policies or is a 3rd party tool required?
>>>> Appreciate any feedback/advice. Thanks.
>>>
>>> You probably have to invoke your own logon/logoff script via the local
>>> policy. The logon script could look like this:
>>> @echo off
>>> if /i not %UserDomain%==%ComputerName% goto :eof
>>> if /i %SessionName%==Console (set Session=Local) else (set Session=TS)
>>> echo %date% %time:~0,5% %UserName% Session type=%Session% Event=logon >>
>>> d:\Logs\Serverlogs.log
>>>
>>> The logoff script would be much the same.

>>
>> While a useful technique (that I have also used), I have made it clear to
>> management that this is not really an auditing tool. The users all have
>> read/write access to the log file, and could modify it to meet their
>> needs, whether to hide their own tracks or to point the finger of blame
>> at someone else.
>>
>> /Al

>
>
> Thanks Pegasus, but I'm afraid I must agree with Al in that I don't think
> it would pass for our auditing needs (need to run it by management
> though). Are you using this type of script yourself?
> Has anyone implemented any auditing technique for logging administrator
> log on/off's for servers? If so, how did you do it?
>


I'v used logon and logoff scripts to track usage for many years. A few times
management wanted to use the resulting logs to discipline employees, but I
always cautioned that all users had to have read/write access to the logs,
so they should not be used for this purpose.

The situation is even worse for administrators. An administrator can do
anything, so they can defeat any audit scheme. You should give a limited
number of trusted people administrator privileges. You can and should still
log and audit, but recognize the limitations.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      10-27-2009


"Richard Mueller [MVP]" <rlmueller-> wrote in
message news:#...
>
> "Barkley Bees" <> wrote in message
> news:...
>>
>> "Al Dunbar" <> wrote in message
>> news:%23%...
>>>
>>> "Pegasus [MVP]" <> wrote in message
>>> news:#...
>>>>
>>>> "Barkley Bees" <> wrote in message
>>>> news:...
>>>>> We want to log all local and remote desktop log on/off events
>>>>> (sucesses & failures) of our servers for auditing purposes. We do not,
>>>>> however, wish to log domain authentication or file/folder accesses at
>>>>> this time.
>>>>>
>>>>> With the above in mind, I had initially thought we could enabled
>>>>> "Audit Logon events" on each server via group policy. After having
>>>>> done some poking around however, it appears that this setting will
>>>>> also log any access to resources of a server with this enabled (not
>>>>> just logon/off). Can anyone suggest a practical way to implement this.
>>>>> Is it possible via the standard local policies or is a 3rd party tool
>>>>> required? Appreciate any feedback/advice. Thanks.
>>>>
>>>> You probably have to invoke your own logon/logoff script via the local
>>>> policy. The logon script could look like this:
>>>> @echo off
>>>> if /i not %UserDomain%==%ComputerName% goto :eof
>>>> if /i %SessionName%==Console (set Session=Local) else (set Session=TS)
>>>> echo %date% %time:~0,5% %UserName% Session type=%Session% Event=logon
>>>> >> d:\Logs\Serverlogs.log
>>>>
>>>> The logoff script would be much the same.
>>>
>>> While a useful technique (that I have also used), I have made it clear
>>> to management that this is not really an auditing tool. The users all
>>> have read/write access to the log file, and could modify it to meet
>>> their needs, whether to hide their own tracks or to point the finger of
>>> blame at someone else.
>>>
>>> /Al

>>
>>
>> Thanks Pegasus, but I'm afraid I must agree with Al in that I don't think
>> it would pass for our auditing needs (need to run it by management
>> though). Are you using this type of script yourself?
>> Has anyone implemented any auditing technique for logging administrator
>> log on/off's for servers? If so, how did you do it?
>>

>
> I'v used logon and logoff scripts to track usage for many years. A few
> times management wanted to use the resulting logs to discipline employees,
> but I always cautioned that all users had to have read/write access to the
> logs, so they should not be used for this purpose.


Ditto. In addition to pointing out the questionable validity of the data, I
also question the validity of using the technology to spy on employees.

/Al

> The situation is even worse for administrators. An administrator can do
> anything, so they can defeat any audit scheme. You should give a limited
> number of trusted people administrator privileges. You can and should
> still log and audit, but recognize the limitations.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
>




 
Reply With Quote
 
Hank Arnold
Guest
Posts: n/a

 
      10-30-2009
"The users all have read/write access to the log file, and could modify
it to meet their needs, whether to hide their own tracks or to point the
finger of blame at someone else."

Pardon me???? Is this true? Why on earth would you allow this kind of
access? Or am I missing something?

--

Regards,
Hank Arnold
Microsoft MVP
Windows Server - Directory Services
http://mypcassistant.blogspot.com/

Al Dunbar wrote:
>
> "Pegasus [MVP]" <> wrote in message
> news:#...


>
> While a useful technique (that I have also used), I have made it clear
> to management that this is not really an auditing tool. The users all
> have read/write access to the log file, and could modify it to meet
> their needs, whether to hide their own tracks or to point the finger of
> blame at someone else.
>
> /Al
>
>

 
Reply With Quote
 
Hank Arnold
Guest
Posts: n/a

 
      10-30-2009
Hank Arnold wrote:
> "The users all have read/write access to the log file, and could modify
> it to meet their needs, whether to hide their own tracks or to point the
> finger of blame at someone else."
>
> Pardon me???? Is this true? Why on earth would you allow this kind of
> access? Or am I missing something?
>


Never mind. From subsequent postings, it seems to be the default..

--

Regards,
Hank Arnold
Microsoft MVP
Windows Server - Directory Services
http://mypcassistant.blogspot.com/
 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      10-31-2009

"Hank Arnold" <> wrote in message
news:...
> "The users all have read/write access to the log file, and could modify it
> to meet their needs, whether to hide their own tracks or to point the
> finger of blame at someone else."
>
> Pardon me???? Is this true? Why on earth would you allow this kind of
> access? Or am I missing something?


I *allow* this kind of access, because, in order to append to a file, the
users need write access. But this is perfectly OK in our environment because
we use this to track logon activities for purposes other than security
auditing, i.e.:

- to track workstations. if we know who logged on when, that gives us an
idea where it might be located. If we actually need to find it, we do not
assume it to be found until we actually see it somewhere, so we are not
basing our inventory reconciliation on the information in the log file.

- to help identify idle or abandoned accounts. we don't assume they are
abandoned if their most recent record is a long time ago - we just know
which managers to approach for confirmation that people have left.

The data is very reliable, however this would change if it were know that
this facility was being used to track employees in some manner, a thing we
religiously refuse to do.

We have also implemented a scheduled task that collects the logs and moves
them into a folder the users cannot access every hour or so. Again not 100%
foolproof, but better than leaving the historical logs wide open.

/Al

>
> --
>
> Regards,
> Hank Arnold
> Microsoft MVP
> Windows Server - Directory Services
> http://mypcassistant.blogspot.com/
>
> Al Dunbar wrote:
>>
>> "Pegasus [MVP]" <> wrote in message
>> news:#...

>
>>
>> While a useful technique (that I have also used), I have made it clear to
>> management that this is not really an auditing tool. The users all have
>> read/write access to the log file, and could modify it to meet their
>> needs, whether to hide their own tracks or to point the finger of blame
>> at someone else.
>>
>> /Al
>>




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error not able to loging after upgrading domain controller Alexyy Active Directory 6 11-10-2009 06:09 AM
Logging server log on/off only (not domain) Barkley Bees Windows Server 11 11-01-2009 04:22 PM
Re: Migrate from one 2003 Domain to another 2003 Domain Meinolf Weber [MVP-DS] Server Migration 0 10-22-2009 07:35 AM
Re: Migrate from one 2003 Domain to another 2003 Domain Meinolf Weber [MVP-DS] Server Migration 1 10-21-2009 08:54 PM
Logging into office server remotely using VPN....Domain question? Jerry Windows Vista Administration 1 07-08-2006 01:27 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59