On Fri, 6 Jun 2025 17:56:18 +0200 Andrea Venturoli via samba <samba at lists.samba.org> wrote:> Hello. > > I see in audit logs a lot of the followings: > > > IP=x.x.x.x | USER=XXXX\xxxx | MACHINE=x.x.x.x | > > VOLUME=xxxxxx|fntimes|fail (No such file or > > directory)|/home/xxxx/xxxxxx|||Fri Jun 6 09:20:45 2025 CEST| > > (Of course the file is there, or I woulnd be suprised). > > I'd like to debug this, but I need to find a way to reproduce it > programmatically, ideally with a script, from a client (UNIX if > possible, or Windows as a second pick). > > Any idea how can I achieve this? > Can smbclient help? Or is there a CMD command I can use? > > > bye & Thanks > av. >I have no idea, mainly because what logs you have posted are meaningless, your sanitising has removed all context (e.g. Is the user from 'USER=' the same user as in '/home/xxxx' ?), also if the IP is an internal one (e.g. 192.168.1.25 , then there is no point in sanitising it). There will probably have also been lines that show what code produced the output, very hard to track down anything without them.
On 6/7/25 10:26, Rowland Penny via samba wrote:> I have no idea, mainly because what logs you have posted are > meaningless, your sanitising has removed all context (e.g. Is the > user from 'USER=' the same user as in '/home/xxxx' ?), also if the > IP is an internal one (e.g. 192.168.1.25 , then there is no point > in sanitising it). There will probably have also been lines that show > what code produced the output, very hard to track down anything without > them.Hello. Sorry if my question wasn't clear. I know the logs above are insufficient to track down the problem, but unfortunately that's all I have ATM. However, I'm not asking help to track this down. In fact I'll have to do this myself. What I'm asking is a way to easily reproduce a call to fntimes. More context: during a compilation with cmake some message appears like "cannot set time on file xxx" (sorry again, I don't have the exact text; I'll eventually try and get it if needed). Of course running a lengthy compilation while watching Samba in gdb and iterating this many times is going to take eons. So I'd need a single command/short script/whatever in order to be able to make this happen easily. Perhaps is this what smbclient's "utimes" command should do? Any other command? If more info is needed, I'll happily provide, but what should I look for? bye & Thanks av.