Can't stop samba service. - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Configuration (/forum-17.html) +--- Thread: Can't stop samba service. (/thread-3943.html) |
Can't stop samba service. - Skywatch - 21st Nov, 2017 10:32 PM 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? RE: Can't stop samba service. - Nachteule - 21st Nov, 2017 11:42 PM 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) RE: Can't stop samba service. - Skywatch - 22nd Nov, 2017 06:59 AM 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! RE: Can't stop samba service. - Nachteule - 22nd Nov, 2017 07:10 AM (22nd Nov, 2017 06:59 AM)Skywatch Wrote: Thanks. This is exactly what "Disable autostart" in xbian-config GUI does RE: Can't stop samba service. - Skywatch - 22nd Nov, 2017 08:17 AM 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. RE: Can't stop samba service. - Nachteule - 22nd Nov, 2017 09:09 AM (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 RE: Can't stop samba service. - sihy - 23rd Jun, 2021 12:33 AM 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? RE: Can't stop samba service. - Nachteule - 23rd Jun, 2021 12:46 AM (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 ~ # RE: Can't stop samba service. - sihy - 23rd Jun, 2021 01:59 AM 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 RE: Can't stop samba service. - jamieoliver - 15th Jul, 2022 01:48 PM 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 |