My samba installation has become a mess, for some reason the services wont even start correctly anymore... Is there a way to completely remove samba, as if it was never there and reinstall it so I can have a fresh setup?

link|improve this question

feedback

1 Answer

up vote 6 down vote accepted
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).
link|improve this answer
Well it looks like that sort of worked, but now it seems to have hung on "Starting Samba daemons: nmbd smbd". I didn't see any errors before that, but to be fair it went by fairly quick, heh. – Bob Aug 28 '10 at 21:58
@Bob you may need a reboot – BloodPhilia Aug 28 '10 at 22:00
Awesome, that did the trick! I guess sometimes rebooting -does- work on *nixy stuff. Thanks! – Bob Aug 28 '10 at 22:17
@Bob Great it worked for you! Good luck with your fresh samba install! Haha! ;) – BloodPhilia Aug 28 '10 at 22:24
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.