[Samba] Doubt samba + Cups and Logs
mmuehlfeld at samba.org
Sat Sep 16 06:23:23 UTC 2017
Am 15.09.2017 um 19:01 schrieb Luiz Guilherme Nunes Fernandes via samba:
> i have one doubt, is possible use only logs for use "printers" or
> "print$" shares? i need filter only logging users.
> Example: What user use this printer, How time? etc
You can't limit logging to individual printers. You can only increase
the debug level for individual debug classes:
The "printdrivers" debug class looks like it can help you with print$
accesses. However, this won't help you if you want log entries each time
when a user prints. This you might better log in CUPS/LPD.
Alternatively, you can extract the information on Windows via login script:
You can write the file to a hidden share, where users are only allowed
to create files, but not to remove files created by other users.
More information about the samba