MasterCATZ's picture

I am trying to upgrade SAMBA to v4 so i can add my win7 pc's into the Domain but they need AD support 

 

I have installed SAMBA 4 

but the default SAMBA is still lurking somewhere and for the hell of my I can not find it 

 

/usr/local/samba

is where my v4 is 

 

smbclient --version

proves that the old version is somewhere 

 

/usr/local/samba/smbclient --version

Proves that my Version 4 is also their 

 

I used this guide for installing samba4 

http://wiki.samba.org/index.php/Samba4/HOWTO#Step_1:_Download_Samba4

Forum: 
Jeremy Davis's picture

So the easiest way to set up Samba4 would be to first uninstall Samba3

apt-get remove samba

followed by installing Samba4

apt-get update
apt-get install samba4

I don't think Webmin samba module will work with Samba4, but maybe? If not you'll need to configue Samba4 manually via its conf file (not sure but would guess you'll find that in /etc/samba4 or something like that).

Timothy's picture

No actually you would find the conf file somewhere else like in like in /usr/local/samba/etc

if you installed samba4 from git and installed it, and everything it says in the samba4howto.

MasterCATZ's picture

so any idea where the original samba was located so i can reinstall over top ?

 

I will give the uninstall a go any how .. just wish i could work out where the darn thing lives 

 

SAMBA4 is working as all its settings are added during install .. its just a matter of getting 4 running and not 3 ... 

Timothy's picture

Check your sbin directory, and other directorys like this and look for smb, etc.

smb is the samba 3 server executable

Jeremy Davis's picture

As Samba3 is installed by package management and you have installed Samba4 from upstream git repo my understanding is that it is 'naughty' to install to filesystem areas maintained by package management (ie apt). I'm not really sure even what you would acheive by installing 'over the top' anyway.

Also thanks for stepping in Timothy, glad there's someone here that knows a bit about this. Samba4 is obviously the future and I look forward to having a play with it sometime when I get a chance. It would be great if someone were to look at building a TKLPatch for a Samba4 based PDC. Perhaps I will?

Jeremy Davis's picture

As TKL does not have a GUI, synaptic is not available. By default TKL uses apt.

To reiterate myself; remove the current Samba (3):

apt-get remove samba

Or if you wish to get rid of all the config files and the Webmin module too use this instead:

apt-get remove --purge samba webmin-samba

Then to install Samba4 (but as I think I said earlier, you may be better using a newer version as it seems you already have):

apt-get update
apt-get install samba4

Jeremy Davis's picture

I can't recall what the fix is (and a quick search failed to locate the page I remember reading), but apparently it's because of a missing DNS record. You need a special DNS record so that Windows knows where the DC is. If you have a Windows DC then it automatically takes care of that for you, when using Samba you need to configure that manually yourself. If you work it out, be great if you could post back.

Add new comment