Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I completely rip-out smb / samba from my Ubuntu 11.10 machine?

How do I, afterwards, reinstall it cleanly?

UPDATE: My goal is to rip out any functionality related to Windows SMB from my desktop and do a clean re-install of these components. See this question for some background.

share|improve this question

1 Answer

up vote 9 down vote accepted

So, for the server, from the Terminal:

sudo apt-get remove --purge samba
sudo apt-get install samba

But, if you are having client problems, it would be more like:

sudo apt-get remove --purge smbclient libsmbclient
sudo apt-get install smbclient libsmbclient
share|improve this answer
After I have completed both "server" and "client" components, how come Nautilus still shows "Browse Network" and "Windows Network" then? – jldupont Nov 2 '11 at 16:47
Is there a relationship with Gnome/GVFS somewhere along the lines? How do I get rid / re-install that too? – jldupont Nov 2 '11 at 16:47
Even after your proposed steps, I still can do "mount -t cifs". How do I completely get rid of smb stuff and do a clean install? – jldupont Nov 2 '11 at 16:49
apt-get purge samba does the same. – Oxwivi Nov 2 '11 at 16:56
1  
The reason that you can still mount a cifs filesystem even after removing samba is that the cifs kernel module is not a part of any samba package. It is included in the kernel. That module has client support only for accessing cifs shares on a network. One does not need samba to access shares. But to create them samba needs to be installed. – Zoke Nov 2 '11 at 18:52
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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