Samba4 installeerimine: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Kvares (talk | contribs)
Kvares (talk | contribs)
Line 26: Line 26:
  Create /usr/local/sbin/samba: #!/bin/sh
  Create /usr/local/sbin/samba: #!/bin/sh
  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)
 
  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 09:59, 7 May 2011

See artikkel on pooleni.

Autorid Kaie Vares AK31 ja Maksim Kornejev AK31

Sissejuhatus

Skoop

juhend kehtib 10.10, kuhu pole installeeritud bind9, kerberos-serverit ja ldap -serverit

Installeerimine

apt-get skriptide modifitseerimine Bind modif aptArmori muutmine

apt-get update
apt-get install samba4 samba4-clients bind9
mv /etc/samba/smb.conf{,.old}
 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'
# /etc/init.d/samba4...  log_daemon_msg "Starting Samba 4 daemon" "samba"  if [ ! -d $(dirname $SAMBAPID) ]; then   mkdir -p $(dirname $SAMBAPID)  fi  if !...
Create /usr/local/sbin/samba: #!/bin/sh
LD_PRELOAD=/usr/lib/libdcerpc.so.0.0.1 /usr/sbin/$(basename $0)
ln -s /usr/local/sbin/samba{,_dnsupdate}
ln -s /usr/local/sbin/samba{,_spnupdate}


 sudo /etc/init.d/samba4 start

Testimine

kinit Administrator Smbd-client

Tulemüürimine

> tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     
> tcp        0      0 192.168.7.201:464       0.0.0.0:*               LISTEN     
> tcp        0      0 192.168.7.101:464       0.0.0.0:*               LISTEN     
8a12,13
> tcp        0      0 192.168.7.201:88        0.0.0.0:*               LISTEN     
> tcp        0      0 192.168.7.101:88        0.0.0.0:*               LISTEN     
10a16,21
> tcp        0      0 0.0.0.0:636             0.0.0.0:*               LISTEN     
> tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     
> tcp        0      0 0.0.0.0:1024            0.0.0.0:*               LISTEN     
> tcp        0      0 0.0.0.0:3268            0.0.0.0:*               LISTEN     
> tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN     
> tcp        0      0 0.0.0.0:135             0.0.0.0:*               LISTEN  

kokkuvõte

4 on keerulisem (-tsoonifail oli olemas)