Forum

Full Version: Can't stop samba service.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
One Xbian box now has samba enabled and when I try to stop the service I says "Failed to stop service..."
Nothing in rc.local either.

How do I disable this please?
How did you try to stop Samba?

Samba service (smbd) is enabled via inetd, so this service can't be stopped like other services, you only can disable autostart of this service (this removes entries from /etc/inetd.conf)
Thanks.

What happened is that it lost connection to the sql media databse on another pi after update. I looked in xbian-config>services and noticed samba not running, so turned it on to see what would happen (libraries worked then!) - But now I can't turn samba off again.
I looked in /etc/inetd.conf ...Do I just comment out the line 'microsoft-ds stream tcp nowait root /usr/sbin/smbd smbd'???

Yup! - That did it Smile

@Nachteule
Thanks for pointing me in the right direction! Smile
(22nd Nov, 2017 06:59 AM)Skywatch Wrote: [ -> ]Thanks.

What happened is that it lost connection to the sql media databse on another pi after update. I looked in xbian-config>services and noticed samba not running, so turned it on to see what would happen (libraries worked then!) - But now I can't turn samba off again.
I looked in /etc/inetd.conf ...Do I just comment out the line 'microsoft-ds stream tcp nowait root /usr/sbin/smbd smbd'???

Yup! - That did it Smile

@Nachteule
Thanks for pointing me in the right direction! Smile

This is exactly what "Disable autostart" in xbian-config GUI does Smile
Not here it doesn't - All I have for options is.....

1. Autostart
2. (re)start
3. Stop
4. Edit
5. Delete

These are all via ssh > xbian-config > services menu. Do you really have a 'disable autostart' option in there on your pi? I tried 'autostart' and there is no option to toggle it or turn it off - it only enables autostart.
(22nd Nov, 2017 08:17 AM)Skywatch Wrote: [ -> ]Not here it doesn't - All I have for options is.....

1. Autostart
2. (re)start
3. Stop
4. Edit
5. Delete

These are all via ssh > xbian-config > services menu. Do you really have a 'disable autostart' option in there on your pi? I tried 'autostart' and there is no option to toggle it or turn it off - it only enables autostart.

Kodi's xbian-config GUI has it Tongue and console xbian-config has Autostart as toggle function Cool
Sorry to necrobump but I can't post a new problem until I have made two posts - this is #1.

I have a similar problem - I can't stop samba.

I've completely deleted the service from the Xbian settings 'Services' menu - still runs.
I've tried to stop it starting with inetd with the wiki info:
sudo update-inetd --disable netbios-ssn
sudo update-inetd --disable microsoft-ds
Still runs.
Commented out run mode in /etc/default/samba
Still runs.
No matter what I do I always get instances of /usr/sbin/smbd -D in ps aux (and nmbd too).

This is causing an issue because I don't want a samba server running on this machine - it is a client not a server (RPi 3b+).
Leaving this server running means the servers log is flooding with e.g
Jun 22 14:52:50 jacinda nmbd[767]: This response was from IP 192.168.1.96, reporting an IP address of 192.168.1.96.
Jun 22 14:52:50 jacinda nmbd[767]: query_name_response: Multiple (2) responses received for a query on subnet 192.168.1.254 for name WORKGROUP<1d>.
Jun 22 14:52:50 jacinda nmbd[767]: [2021/06/22 14:52:50.798169, 0] ../source3/nmbd/nmbd_namequery.c:109(query_name_response)

Any ideas anyone?
(23rd Jun, 2021 12:33 AM)sihy Wrote: [ -> ]Sorry to necrobump but I can't post a new problem until I have made two posts - this is #1.

I have a similar problem - I can't stop samba.

I've completely deleted the service from the Xbian settings 'Services' menu - still runs.
I've tried to stop it starting with inetd with the wiki info:
sudo update-inetd --disable netbios-ssn
sudo update-inetd --disable microsoft-ds
Still runs.
Commented out run mode in /etc/default/samba
Still runs.
No matter what I do I always get instances of /usr/sbin/smbd -D in ps aux (and nmbd too).

This is causing an issue because I don't want a samba server running on this machine - it is a client not a server (RPi 3b+).
Leaving this server running means the servers log is flooding with e.g
Jun 22 14:52:50 jacinda nmbd[767]: This response was from IP 192.168.1.96, reporting an IP address of 192.168.1.96.
Jun 22 14:52:50 jacinda nmbd[767]: query_name_response: Multiple (2) responses received for a query on subnet 192.168.1.254 for name WORKGROUP<1d>.
Jun 22 14:52:50 jacinda nmbd[767]: [2021/06/22 14:52:50.798169, 0] ../source3/nmbd/nmbd_namequery.c:109(query_name_response)

Any ideas anyone?

I don't know if this solves your problem, but an still unreleased commit in xbian-update does the following:

Code:
sudo update-rc.d -f nmbd remove >/dev/null 2>&1; sudo rm -f /etc/init.d/nmbd
sudo update-rc.d -f smbd remove >/dev/null 2>&1; sudo rm -f /etc/init.d/smbd

On my devel system neither nmbd nor smbd is running:

Terminal

root@kmxbilr2 ~ # pgrep smbd
root@kmxbilr2 ~ # pgrep nmbd
root@kmxbilr2 ~ #
Boom! Thanks for your help.

/etc/init.d/nmbd and /etc/init.d/smbd are no more but interestingly there is a samba-ad-dc present in /etc/init.d which is a "Meta-service to provide AD and SMB/CIFS services to clients", but it doesn't seem to be starting smbd/nmbd.

Appreciate it, all the best
Simon
I have the same problem as you. I couldn't know how to disable samba. I try many ways but it does not work.
flixdle
Reference URL's