3

I seem to have some issues sharing folders from my Ubuntu 12.04 machine to a Win7 machine. After playing around with the settings, I decided to revert to Samba's original setting by reinstalling it:

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

just to be sure I also run:

sudo apt-get install samba samba-common system-config-samba winbind

Now, I can't find /etc/samba folder any more. Even when I try to share a folder through Nautilus, I get:

Samba's testparm returned error 1: Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
    No such file or directory
Error loading services.

Same when I try to list:

xxx@xxx:~$ ll /etc/samba
ls: cannot access /etc/samba: No such file or directory

Any ideas what I did wrong, or what other package am I missing?

cheers

3 Answers 3

4

I think you need to purge the others, not only samba before reinstalling.

apt-get purge samba samba-common system-config-samba winbind
4
  • great man, thx. That was it ;)
    – bioShark
    Oct 14, 2012 at 14:37
  • Now I don't have the share tab included in Nautilus when I right click -> Properties on a folder.
    – bioShark
    Oct 14, 2012 at 18:59
  • hey, I got this error: dpkg: error processing package samba-common-bin (--remove): unable to securely remove '/etc/samba/tls': Not a directory Do you have any ideas on how to solve it?
    – Antonio
    Apr 1, 2020 at 13:33
  • I was able to solve using an answer of yours on another question.
    – Antonio
    Apr 1, 2020 at 13:48
0

All you do is right click on any folder and click share and it installs all the apt files needed to make samba server run fine.

1
  • That's all fine and good, but for some reason it doesn't work. Windows can't detect the shared folder.
    – bioShark
    Oct 14, 2012 at 17:17
0

For me what has worked was following the solution proposed by user Laurent in this and another question. The two solutions together solved the problem.

apt-get purge samba samba-common system-config-samba winbind
sudo dpkg -P samba samba-common smbclient
sudo rm -f /etc/rc*.d/*samba /etc/init.d/samba

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .