using smbstatus
that reports on current connections.
Is there a way to save, or have, the information reported from smbstatus
for ALL samba connections that have happened over some period of time?
Specifically, the columns of UID, SharePath, Name, Time reported by smbstatus I would like to have every one of those at least.
And ideally, for each of those samba connections is there a way to know the hostname or ip address it came from?
update:
so I think all I need is in smb.conf
under [global]
- log level = 3 passdb:5 auth:5
I am then able to find relevant info in /var/log/samba/log.smbd
such as
- Got user=[my username]
- workstation=[my computer name]
- Allowed connection from ip address (ip address)
any help regarding passdb:#
and auth:#
would be much appreciated.