My Samba installation has become a mess, and now the services won't even start correctly anymore, for some reason.
Is there a way to completely remove Samba, as if it was never there, and then reinstall it so I can have a fresh setup?
My Samba installation has become a mess, and now the services won't even start correctly anymore, for some reason.
Is there a way to completely remove Samba, as if it was never there, and then reinstall it so I can have a fresh setup?
sudo apt-get purge samba
will remove the entire package, along with configuration files, which apt-get remove samba won't. After the purge, reinstall samba using
sudo apt-get install samba
from man apt-get:
purge
purge is identical to remove except that packages are removed and
purged (any configuration files are deleted too).
On Ubuntu (17) I did
apt purge samba samba-common
followed by
apt install system-config-samba
which worked for me.