Can't stop samba service.
|
21st Nov, 2017, 10:32 PM
Post: #1
|
|||
|
|||
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? |
|||
21st Nov, 2017, 11:42 PM
Post: #2
|
|||
|
|||
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) |
|||
22nd Nov, 2017, 06:59 AM
Post: #3
|
|||
|
|||
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 @Nachteule Thanks for pointing me in the right direction! |
|||
22nd Nov, 2017, 07:10 AM
Post: #4
|
|||
|
|||
RE: Can't stop samba service.
(22nd Nov, 2017 06:59 AM)Skywatch Wrote: Thanks. This is exactly what "Disable autostart" in xbian-config GUI does |
|||
22nd Nov, 2017, 08:17 AM
Post: #5
|
|||
|
|||
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. |
|||
22nd Nov, 2017, 09:09 AM
Post: #6
|
|||
|
|||
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..... Kodi's xbian-config GUI has it and console xbian-config has Autostart as toggle function |
|||
23rd Jun, 2021, 12:33 AM
Post: #7
|
|||
|
|||
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? |
|||
23rd Jun, 2021, 12:46 AM
Post: #8
|
|||
|
|||
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 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 On my devel system neither nmbd nor smbd is running: Terminal root@kmxbilr2 ~ # pgrep smbd root@kmxbilr2 ~ # pgrep nmbd root@kmxbilr2 ~ # |
|||
23rd Jun, 2021, 01:59 AM
Post: #9
|
|||
|
|||
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 |
|||
15th Jul, 2022, 01:48 PM
Post: #10
|
|||
|
|||
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 |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[SOLVED] Samba Won't Stop Autostarting [ACTUALLY IT DOES!] | josch | 2 | 9,135 |
19th Jan, 2014 09:39 PM Last Post: josch |