[Samba] Zabbix + samba4

Rowland Penny rowlandpenny at googlemail.com
Wed Nov 27 10:03:58 MST 2013


On 27/11/13 16:52, Niels Dettenbach (Syndicat IT&Internet) wrote:
>
> Gian Henriques <gian.ti at viareal.com.br> schrieb:
>> Thanks!
>>
>> Now I'm trying to run 'net status' with my zabbix user but it fails.
>>
>> "Failed to initialize session_global: NT_STATUS_ACCESS_DENIED"
> You have at least two options:
>
>   - give zabbix user proper administrator access in samba
Please don't do this, do you really want the zabbix user to have that 
much power just to run 'net' ?
> or
>   - use sudo with a passwordless config for zabbix user
Better idea, this is not a samba problem really, but you could try 
adding the zabbix user to /etc/sudoers (via visudo)  with a line similar 
to this:

zabbix ALL=(ALL) NOPASSWD: /path/to/net

Rowland
>
> hth,
> best regards,
>
>
> Niels.



More information about the samba mailing list