Samba not wanted
Samba not wanted
During my recent installation of MX 17.1 I unchecked the Samba box, because I don't want or need it. I have since noticed,
1. during a recent update, samba was showing as one of the items being updated.
2. when logging out I see the message that samba is shutting down.
Since I unchecked the samba box during installation I expected it to not be installed. Or am I missing something here?
1. during a recent update, samba was showing as one of the items being updated.
2. when logging out I see the message that samba is shutting down.
Since I unchecked the samba box during installation I expected it to not be installed. Or am I missing something here?
- dolphin_oracle
- Developer
- Posts: 20012
- Joined: Sun Dec 16, 2007 1:17 pm
Re: Samba not wanted
its installed, but it shouldn't be running.barnaby wrote: ↑Fri Nov 30, 2018 9:50 am During my recent installation of MX 17.1 I unchecked the Samba box, because I don't want or need it. I have since noticed,
1. during a recent update, samba was showing as one of the items being updated.
2. when logging out I see the message that samba is shutting down.
Since I unchecked the samba box during installation I expected it to not be installed. Or am I missing something here?
at the moment its not removable without removing one of our other mx packages. That will likely change soon.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Samba not wanted
Thanks for the quick reply. As I said above, when logging out of MX at the end of a session I see the message that samba is shutting down. To me that suggests that it is running. In all my nearly 20 years with Linux I have never used samba, so I don't know anything about it. Is there a quick way to check if it is running, please, and if so is it easy to turn it off?
- dolphin_oracle
- Developer
- Posts: 20012
- Joined: Sun Dec 16, 2007 1:17 pm
Re: Samba not wanted
Code: Select all
sudo service smbd status
and if you want to disable it if it is running
Code: Select all
sudo service smbd disable
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Samba not wanted
Thanks again. Simple really, except that it did not like disable, it wanted stop. I suppose that I will have to just ignore it until a possible change in MX in the future, as you mentioned above. It seems to be something about connecting to a Windows computer. I have had absolutely nothing to do with MS Windows for nearly 20 years now, and never intend to. So I just do not need anything to do with samba, unless it is doing something else that I am not aware of. It seems odd to me that it is automatically included and running after installation.
- dolphin_oracle
- Developer
- Posts: 20012
- Joined: Sun Dec 16, 2007 1:17 pm
Re: Samba not wanted
if you unchecked the box, it should have been disabled. will have to investigate that.barnaby wrote: ↑Fri Nov 30, 2018 10:31 am Thanks again. Simple really, except that it did not like disable, it wanted stop. I suppose that I will have to just ignore it until a possible change in MX in the future, as you mentioned above. It seems to be something about connecting to a Windows computer. I have had absolutely nothing to do with MS Windows for nearly 20 years now, and never intend to. So I just do not need anything to do with samba, unless it is doing something else that I am not aware of. It seems odd to me that it is automatically included and running after installation.
what didn't it like about disable? disable should keep it from starting the next time you reboot.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Samba not wanted
When I tried to use disable I got the following message:
Usage: /etc/init.d/smbd {start|stop|reload|restart|force-reload|status}
To me that meant that disable was not available. So I used stop. Now I realise that is only for the current session. And sure enough, after a shut down and restart it is running again.
And, yes, I did most certainly check the box during installation to not have it included in the installation.
Usage: /etc/init.d/smbd {start|stop|reload|restart|force-reload|status}
To me that meant that disable was not available. So I used stop. Now I realise that is only for the current session. And sure enough, after a shut down and restart it is running again.
And, yes, I did most certainly check the box during installation to not have it included in the installation.
- dolphin_oracle
- Developer
- Posts: 20012
- Joined: Sun Dec 16, 2007 1:17 pm
Re: Samba not wanted
shoot I have you the wrong command for disable. you are correct on the "stop" usage
Code: Select all
sudo update-rc.d smbd disable
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Samba not wanted
I just checked and it says Samba is running. I removed the check out of the Samaba selection during installation. It shouldn't be running but it is. I ran the command to disable Samba and then the command to check that it's off but it still shows Samba is running. How do I permanently shutdown Samba or better yet remove it? I tried rebooting and now Samaba is off. I hope this Samba bug get's corrected in time for the MX-18 release.dolphin_oracle wrote: ↑Fri Nov 30, 2018 10:10 amCode: Select all
sudo service smbd status
and if you want to disable it if it is running
Code: Select all
sudo service smbd disable
Last edited by Mauser on Fri Nov 30, 2018 6:18 pm, edited 1 time in total.
I am command line illiterate. I copy & paste to the terminal. Liars, Wiseguys, Trolls, and those without manners will be added to my ignore list.
Re: Samba not wanted
On the command line to disable completely samba (and relatives)barnaby wrote: ↑Fri Nov 30, 2018 5:39 pm When I tried to use disable I got the following message:
Usage: /etc/init.d/smbd {start|stop|reload|restart|force-reload|status}
To me that meant that disable was not available. So I used stop. Now I realise that is only for the current session. And sure enough, after a shut down and restart it is running again.
Stop all if any is running:
Open terminal as normal user and run
Code: Select all
sudo service samba stop
sudo service samba-ad-dc stop
and remove any runlevel related start/stop-links (to tidy up the "mess"):
Code: Select all
sudo update-rc.d samba remove
sudo update-rc.d samba-ad-dc remove
sudo update-rc.d smbd remove
sudo update-rc.d nmbd remove
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB