Samba4 installeerimine: Difference between revisions
Line 15: | Line 15: | ||
apt-get update | apt-get update | ||
apt-get install samba4 samba4-clients bind9 | installime vajalikud paketid | ||
apt-get install samba4 samba4-clients bind9 krb5-user | |||
salvestame vana konfiguratsioono faili teise nimega | |||
mv /etc/samba/smb.conf{,.old} | mv /etc/samba/smb.conf{,.old} | ||
Line 34: | Line 36: | ||
LD_PRELOAD=/usr/lib/libdcerpc.so.0.0.1 /usr/sbin/$(basename $0) | LD_PRELOAD=/usr/lib/libdcerpc.so.0.0.1 /usr/sbin/$(basename $0) | ||
Tekkitame lingid | |||
ln -s /usr/local/sbin/samba{,_dnsupdate} | ln -s /usr/local/sbin/samba{,_dnsupdate} | ||
ln -s /usr/local/sbin/samba{,_spnupdate} | ln -s /usr/local/sbin/samba{,_spnupdate} |
Revision as of 21:50, 7 May 2011
See artikkel on pooleni.
Autorid Kaie Vares AK31 ja Maksim Kornejev AK31
Sissejuhatus
Skoop
juhend kehtib Ubuntu 10.10 jaoks, kuhu pole installeeritud bind9, kerberos-serverit ja ldap -serverit
Installeerimine
apt-get Bind modif aptArmori muutmine
apt-get update
installime vajalikud paketid
apt-get install samba4 samba4-clients bind9 krb5-user
salvestame vana konfiguratsioono faili teise nimega
mv /etc/samba/smb.conf{,.old}
Loome kofiguratsiooni faili
sudo LD_PRELOAD=/usr/lib/libdcerpc.so.0.0.1 /usr/share/samba/setup/provision --realm=samdom.example.com --domain=SAMDOM --adminpass=SOMEPASSWORD --server-role='domain controller'
skriptide modifitseerimine The samba4 init script doesn't check for the existence of the samba directory in /var/run, so let's add that ourselves.
# /etc/init.d/samba4... log_daemon_msg "Starting Samba 4 daemon" "samba" if [ ! -d $(dirname $SAMBAPID) ]; then mkdir -p $(dirname $SAMBAPID) fi
creating local versions of the samba programs that will load the library /usr/local/sbin/samba:
#!/bin/sh LD_PRELOAD=/usr/lib/libdcerpc.so.0.0.1 /usr/sbin/$(basename $0)
Tekkitame lingid
ln -s /usr/local/sbin/samba{,_dnsupdate} ln -s /usr/local/sbin/samba{,_spnupdate}
Samba4 käivitamine
sudo /etc/init.d/samba4 start
Testimine
kinit Administrator
Smbd-client
Versiooni kontrollimine:
smbclient --version
Kontrollime, kas töötab:
smbclient -L localhost -U%
That should show you a list of shares available on your server. For example:
xxxxxxx xxxxxx
Tulemüürimine
Samba 4 kasutab järgmised pordid
> tcp :139 > tcp :464 > tcp :88 > tcp :636 > tcp :445 > tcp :1024 > tcp :3268 > tcp :389 > tcp :135
kokkuvõte
4 on keerulisem (-tsoonifail oli olemas)