Q&A: Can I enable machine based logging on a Samba DC?

Question:

Can I enable machine based logging on a Samba DC?

Answer:

This is currently not possible with Samba4. A bug has been filled but has not been fixed so far. A Univention bug exists, too.

Workaround

You might want to install a member server with samba3 instead of samba4 and enable machine based logging there.

# univention-install univention-samba 
# vim /etc/samba/local.conf
[global]
log file = /var/log/samba/log.%m
logging = yes
# /etc/init.d/samba restart
Mastodon