MacOs SMB Server logging

I'm trying to enable debug logging for SMB Server. Did the following:

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist LogLevel -int 1
sudo /usr/libexec/smb-sync-preferences 

I can now see events using

sudo log stream --level debug --predicate 'senderImagePath endswith "smbd”’

But the logs say nothing because of Private mode. Now I know that I can turn Private mode off by installing a profile like described here but I really would like to avoid that.

Is there any other way of getting this information?

I'm really only interested in seeing who connected to my server and using which protocol.

Posted on Jul 24, 2023 6:55 AM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MacOs SMB Server logging

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.