Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't get vfs objects full_audit to write to separate file

Featured Replies

Hello,

 

I'm desperately trying to get Samba to write SMB auditing to a separate logfile. Under Settings --> SMB --> Samba Extra Configuration, the following already outputs Samba logs in general to it's own file and writes additional full_audit information:

 

logging = file
log file = /var/log/samba/samba.log
log level = 3 winbind:0
vfs objects = full_audit
full_audit:prefix = %u|%I|%S
full_audit:priority = NOTICE
full_audit:success = openat mkdirat renameat unlinkat pwrite
full_audit:failure = openat

(The winbind:0 suppresses annoying errors that spammed my logs.)

 

So according to the smb.conf Man page, I can direct different objects to separate files with different log levels, so I tried:

 

logging = file
log file = /var/log/samba/samba.log
log level = 3 winbind:1@/var/log/samba/winbind.log full_audit:5@/var/log/samba/audit.log
vfs objects = full_audit
full_audit:prefix = %u|%I|%S
full_audit:priority = NOTICE
full_audit:success = openat mkdirat renameat unlinkat pwrite
full_audit:failure = openat

(And I tried many different combinations of log levels, orders of these commands, ...)

 

But this only generates an audit.log file, but the full_audits go nowhere. The file stays empty.

winbind.log on the other hand gets populated with the errors I directed to that file...!

 

I'm a bit lost right now, so if anybody could point me in the right direction, I would be very thankful.

Edited by adrifromhh

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.