samba_users: problems with smbv4: graph doesnt draw numbers
laama1 opened this issue · comments
On Fedora linux with SELinux enabled, the plugin samba_users does not work. It works, if I run it as root from cmd line. It will print:
samba_users.value 1
as expected. I have
[samba_*]
user root
in /etc/munin/plugin-conf.d/munin-node config file.
There is no
WARNING : Samba 3.6 and newer block access to smbstatus for no root user
On Debian make a "chmod a+w /run/samba/sessionid.tdb"
file. The grep-regex inside the script works. I get no SELinux warnings about this command but when i disable SELinux, the plugin works as expected. How to debug this?
On Fedora linux with SELinux enabled, the plugin samba_users does not work.
In case the plugin samba_users
is shipped with Fedora, then you should open a bug report with Fedora.
Based on your description, I guess, that the package maintainer will need to add an SELinux rule for this specific file access.
Yes you are right it should be selinux issue not munin. But I downloaded the plugin from munin site, I think this plugin is not available on official fedora repository. I have to figure this out and I could ask help from #selinux at liberachat.
In this case it would be great, if you could report back (as a pull request?), which hints could be mentioned in the documentation of this plugin in order to work with SELinux.
the plugin "samba" provides the same results as "samba_users" so I'm going to get that working first.. The SELinux file context type (of the samba script) is what I'm trying to investigate now.