how to check who's accessing samba shared folder from windows
i had a file server (samba server) ,windows user save their files on thier shared in linux.i want to know did i know which windows user is accessing server shared dir.either by thier ip address...
|
|
i think these command is for domain server...i samba server not domain server.
|
Less thinking might be in order ... :)
|
Webmin provides open connection info
If you have webmin installed with the samba module and you access the share info, you will find a "View connections" button that lists all open connections to that share.
You might also use the smbstatus command. Best regards Oriol |
Quote:
|
Quote:
Did smbstatus produce the info you asked for? |
thanks din ..
smbstatus command is good one.learned one more command |
Hi, I use this "wrapper" to smbstatus to get an output with easier identification of locked files per user:
Code:
#!/usr/bin/perl |
from where you get this code?
|
Quote:
|
not is not ugly at all....but i can't test it coz iam using file server for company so i didnot test it on running server..
|
Does descendent_command not get a thank you or an apology?
|
Quote:
I have another script though to "kick" user connections (I named it really "kick"); you go "kick john.smith", and it finds the PIDs for the guy's samba connections/locked files, then kills them. This one does harm :) , but it is eventually useful (when windows/app crashes and leaves file locked in the server) (*the assurance of a random guy in a forum means nothing, but you can read the script :-) ) |
Quote:
|
All times are GMT -5. The time now is 08:17 PM. |