<span width="18" height="18"></span><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">








    
    </span><a href="https://askubuntu.com/posts/1490845/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right"><span width="19" height="18"></span></a><div><div data-post-id="1490845" data-referrer="None"></div><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">

        </span></div><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">

        

</span><div><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">
    
    </span><div><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">
                
</span><p style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">Hello everyone</span><br></p><p><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">I'm using USBguard to prevent users from connecting an untrusted device to their machines (Ubuntu 22.04).</span></p><p><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">Once the device is trust, I would like to keep logs of which file is copied to a USB key. I would like to have :</span></p><ul><li style="font-size: 14px; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">the username</span></li><li style="font-size: 14px; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">the timestamp</span></li><li style="font-size: 14px; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">the file name</span></li><li style="font-size: 14px; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">the most important for me : the hash of the file</span></li></ul><p style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">AIDE seems to be very great for this, except that it haven't find how to run a check when a file is copied to an usb key. </span><br></p><p style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">Does someone have a clue ?</span></p><p style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">Or perhaps there is a better tool for my needs ?</span></p><p style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: normal; font-family: Arial, sans-serif;">Thanks !</span><br></p></div></div><br>