Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Can't stop samba service.
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Can't stop samba service.
21st Nov, 2017, 10:32 PM
Post: #1
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
Can't stop samba service.
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?
Find all posts by this user
21st Nov, 2017, 11:42 PM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Can't stop samba service.
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)
Find all posts by this user
22nd Nov, 2017, 06:59 AM
Post: #3
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Can't stop samba service.
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
Find all posts by this user
22nd Nov, 2017, 07:10 AM
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Can't stop samba service.
(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
Find all posts by this user
22nd Nov, 2017, 08:17 AM
Post: #5
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Can't stop samba service.
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.
Find all posts by this user
22nd Nov, 2017, 09:09 AM
Post: #6
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Can't stop samba service.
(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
Find all posts by this user
23rd Jun, 2021, 12:33 AM
Post: #7
sihy Offline
Registered
Posts: 2
Joined: Jun 2021
Reputation: 0
RE: Can't stop samba service.
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?
Find all posts by this user
23rd Jun, 2021, 12:46 AM
Post: #8
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Can't stop samba service.
(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 ~ #
Find all posts by this user
23rd Jun, 2021, 01:59 AM
Post: #9
sihy Offline
Registered
Posts: 2
Joined: Jun 2021
Reputation: 0
RE: Can't stop samba service.
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
Find all posts by this user
15th Jul, 2022, 01:48 PM
Post: #10
jamieoliver Offline
Banned
Posts: 1
Joined: Jul 2022
RE: Can't stop samba service.
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
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
Thumbs Up [SOLVED] Samba Won't Stop Autostarting [ACTUALLY IT DOES!] josch 2 9,608 19th Jan, 2014 09:39 PM
Last Post: josch

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 26th May, 2025, 06:30 AM Powered By MyBB, © 2002-2025 MyBB Group.