Ubuntu – How to completely reset Samba to the shipped defaults


Since no one can help me with sharing files from Samba, how can I reset it to the defaults and delete any residual configurations from previous releases? Then, presumably, the GUI sharing would work after I reinstall samba. I tried using dpkg reconfigure samba, but it made things even worse, and now my ubuntu computer's hostname stopped existing. >:(

Best Answer

Try the following:

sudo apt-get purge samba samba-common
sudo rm -rf /etc/samba/ /etc/default/samba
sudo apt-get install samba

If you still have problems please provide more details.