# how to know who is accessing my system?

Is it possible to know if anyone is accessing any of folders or drives in my system(32 bit windows 2003)? I mean shared folders or non-shared folders, anything. And once if we know, how to deny access to particular host. For shared folders i know how to do, but if anyone is accessing some folder with proper credentials, i don't know how to control.

Please ignore cases like bit torrent etc. All i wanted to know is if anyone is accessing my system folders in this way

\\10.30.188.231\d$\calvin_docs with some valid username and password. I wanted to know ip/username of system who is accessing - ## migrated from stackoverflow.comNov 26 '09 at 6:08 This question came from our site for professional and enthusiast programmers. ## 9 Answers fsmgmt.msc is your friend. Run this on the workstation in question and you will be able to see all shares, sessions, and open files on that particular workstation. From this utility you will be able to close any particular session and with folder permissions you should be able to restrict usage. However, it really depends on the privileges of the connecting user in question as to whether or not you can keep them out in this fashion. For instance, if the user is a domain admin. Anyhow, I believe that fsmgmt will definitely get you moving in the right direction. Please write back and let us know how you made out! Good luck. - Thanks for the answer, this gives who is connected to my machine thru rdc, but it doesn't give who is accessing files or folders(shared/non shared). It just gives how many ppl are accessing. – rplusg Dec 2 '09 at 8:46 Under the Shares tree it will show the number of people accessing which particular share. If you go to the Sessions or Open Files trees it will tell you who is connected, the machine they're connected from, how many files they have open and the names of the actual files themselves. Here's an example: img166.imageshack.us/img166/6825/29013877ye2.jpg – JohnyD Dec 2 '09 at 13:42 Yes got it, thanks alot for driving till the end. Gah, its my bad, didn't see properly before :). – rplusg Dec 7 '09 at 7:11 You can go to "Computer Managment" and under to system tools you have Shared Folder, Tere You can see some basic information. To open Compute Managment on icon MY Computer right click and chose Manage - If you think someone is access system hidden shares then they'll be doing it using an administrator account. Regularily check your local administrator group for membership. If you want to view who is accessing them then you will need to set up auditing then select object access sucess. - go to local security settings within administrative tasks. Configure the auditing options. You can audit files, drives , applications , etc. Just configure to audit success and failure. the security events will start appearing in your event viewer in the security log. To prevent unauthorized access , i guess you need to REMOVE that users permission from the file/folder which they are trying to access. If your using a domain controller , just add that user to the file/folder permissions and explicitly restrict their actions. The best is , just dont add users to groups which have access to the file/folder. - Since you mention file-sharing: If you use applications like BitTorrent or an FTP or web server it is very difficult to tell who is doing what. The auditing/access control tools of the OS will not be able to tell what is going on; for them it looks as if the user who is running the file sharing client application is accessing those files, even though the "real" user is someone else (and someone unknown to your local network domain). The best you can do here is to audit access by application name, and look at the access logs that these applications maintain themselves. - I don't think the OP is talking about that kind of file sharing, in spite of the tag. – Dennis Williamson Nov 26 '09 at 7:00 please ignore cases like bit torrent etc. All i wanted to know is if anyone is accessing my system folders in this way, "\10.30.188.231\d$\calvin_docs" with some valid username and password. I wanted to know ip/username of system who is accessing –  rplusg Nov 26 '09 at 7:39

I'd be looking into using the Sysinternals Procmon.exe tool which can tell you all files/reg/network access. It'll generate a huge log to sift through, but there's a mine of information on what user is running what process and causing particular types of load on a server.

-

Just use the application share monitor

You can use the command net session in a windows cmd window. See this stackoverflow question for a couple of other techniques. I usually just use net session though, it just works.