Page 1 of 1

How to remove Samba/SMB and related services safely

Posted: Thu Apr 18, 2013 12:42 pm
by velky_pivo
First of all, is there a benefit to removal of this if you don't need it (bootup speedup, security etc.) ?

I do not want to do any file or printer sharing over network, so I would like to remove Samba, smb etc.

I do need wireless, and perhaps netbios (not sure) to connect to internet.

When I removed following packages, it messed up my Mate desktop settings, and I had to reinstall Mate to fix this.

samba, python-smbc, libwbclient0, samba-common, samba-common-bin

Is there a specific procedure for Mint to do this safely, which packages/dependencies need to be kept/removed ?

Re: How to remove Samba/SMB and related services safely

Posted: Thu Apr 18, 2013 1:06 pm
by xenopeek
MATE has integrated file sharing functionality, for which it needs these packages. You may however disable the Samba services I think. To do so, run these commands:

Code: Select all

sudo stop nmbd
echo manual | sudo tee -a /etc/init/nmbd.override

sudo stop smbd
echo manual | sudo tee -a /etc/init/smbd.override
The first command stops the service currently running, until next reboot. The second command changes the configuration so that it won't be started upon next reboot. So Samba won't be running.