你如何监控文件访问和用户名的文件服务器上的变化? [英] How do you monitor file access and changes on a file server by user name?
问题描述
有人问我找到一种方法来监视的变化(修改,重命名,删除,移动)在公司的共享文件服务器上的特定文件夹中的文件(简单的Windows共享目录)。我写在C#中的简单应用程序,使用 FileSystemWatcher的以监视这些变化并通知他们的特定的电子邮件地址。
I was asked to find a way to monitor changes (modification, renaming, deletion, moving) of files in specific folders on the company's shared file server (simple windows shared directory). I wrote a simple app in C# that uses FileSystemWatcher to monitor these changes and notify a particular email address of them.
我现在想知道的是如何找出用户/计算机谁做了这些改动的名称/ IP。任何想法?
What I'd like to know now is how to find out the name/IP of the user/computer who made these changes. Any ideas?
作为替代写我自己的软件,是否有支持此功能的任何好(可能是免费)软件?
As an alternative to writing my own software, are there any good (possibly free) software that supports this functionality?
推荐答案
使用审核 - 这是安全选项卡上,当你的文件/文件夹的属性。您可以指定哪些用户你想审核什么样的访问。您还可以使用安全策略MMC管理单元打开审计。审计工作最终会在安全日志中。
Use auditing - it's on the security tab when you get the properties of file/folder. You specify which users you want audited for what kind of access. You also have to turn on auditing using the security policy mmc snap-in. The audits will end up in the security log.
从MS详细说明: http://support.microsoft.com/kb/310399
如果你愿意,你的C#应用程序便可以挑选出事件的安全事件日志。
If you want, your C# app could then pick the events out of the security event log.
这篇关于你如何监控文件访问和用户名的文件服务器上的变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!