Samba: how to disable nmbd?

Thanks, but you're wrong. This is actually a place where you can set options which are not supported by uci. Changes from the template are merged with those set in /etc/config and placed in /etc/samba/smb.conf, you can check it out.

But it seems that I came up with a bit nicer solution than kiling nmbd, I just commented it out and it does not start anymore:
/etc/init.d/samba:

start_service() {
        init_config

        procd_open_instance
        procd_set_param command /usr/sbin/smbd -F
        procd_set_param respawn
        procd_set_param file /var/etc/smb.conf
        procd_close_instance

#       procd_open_instance
#       procd_set_param command /usr/sbin/nmbd -F
#       procd_set_param respawn
#       procd_set_param file /var/etc/smb.conf
#       procd_close_instance
}

But I don't like this either. Why openwrt's samba ignores the option?

2 Likes