Hi Luiz,
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:
https://wiki.samba.org/index.php/Configuring_Logging_on_a_Samba_Server#Setting_Individual_Log_Levels_for_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:
https://community.spiceworks.com/topic/365018-list-network-printers-via-batch-file
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.
Regards,
Marc