Mainos / Advertisement:
Ero sivun ”Sambadc” versioiden välillä
Siirry navigaatioon
Siirry hakuun
Rivi 52: | Rivi 52: | ||
http://www.golinuxhub.com/2013/06/samba-41-as-active-directory.html | http://www.golinuxhub.com/2013/06/samba-41-as-active-directory.html | ||
+ | |||
+ | |||
+ | #!/bin/bash | ||
+ | aptitude -y install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev libpam0g-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xsl libcups2-dev acl | ||
+ | aptitude -y install git build-essential python-dev libacl1-dev libldap2-dev libctdb-dev libkrb5-dev libfam-dev dmapi-dev libpam-dev libavahi-common-dev libavahi-client-dev libcups2-dev dnsutils | ||
+ | wget https://www.samba.org/samba/ftp/stable/samba-4.1.16.tar.gz | ||
+ | gunzip samba-4.1.16.tar.gz | ||
+ | tar -xvf samba-4.1.16.tar | ||
+ | mv samba-4.1.16 /usr/local/samba | ||
+ | cd /usr/local/samba | ||
+ | ./configure | ||
+ | make | ||
+ | make install | ||
+ | echo 'export PATH=$PATH:/usr/local/samba/bin:/usr/local/samba/sbin' >> .bashrc | ||
+ | tail -n1 .bashrc | ||
+ | export PATH=$PATH:/usr/local/samba/bin:/usr/local/samba/sbin | ||
+ | source .bashrc | ||
+ | samba -V |
Versio 29. tammikuuta 2015 kello 22.46
{{#allow-groups:user}}
Huom. 4.1.16 versiolla pukkaa erroria mulla.. asensin 4.1.3 niin vähän paremmin menee
Asennus
apt-get install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev libpam0g-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xsl libcups2-dev acl
aptitude install git build-essential python-dev libacl1-dev libldap2-dev libctdb-dev libkrb5-dev libfam-dev dmapi-dev libpam-dev libavahi-common-dev libavahi-client-dev libcups2-dev dnsutils
wget https://www.samba.org/samba/ftp/stable/samba-4.1.16.tar.gz gunzip samba-4.1.16.tar.gz tar -xvf samba-4.1.16.tar mv samba-4.1.16 /usr/local/samba cd /usr/local/samba ./configure make make install
echo 'export PATH=$PATH:/usr/local/samba/bin:/usr/local/samba/sbin' >> .bashrc tail -n1 .bashrc export PATH=$PATH:/usr/local/samba/bin:/usr/local/samba/sbin source .bashrc root@sambadc:/usr/local/samba# samba -V Version 4.1.16
Konfigurointi
wget -o /dev/null http://www.heikkiniemi.fi/sites/default/files/samba4.txt mv samba4.txt /etc/init.d/samba4 chmod a+x /etc/init.d/samba4 update-rc.d samba4 defaults
Luodaan toimialue nimeltään JOHANNES ja järjestelmävalvojan salasanana Qwerty1.
samba-tool domain provision --domain=JOHANNES --adminpass='Qwerty123' --function-level=2008_R2 --use-xattrs=yes --use-rfc2307 --realm=JOHANNES.LOCAL
samba -i -M single -d2
Käynnistä Samba uudelleen
service samba4 restart
Luodaan uusi käyttäjä haapajo, jonka tulee vaihtaa salasana seuraavalla kirjautumisen kerralla. Kotikansion polku on /home.johannes.local/haapajo
samba-tool user add haapajo --must-change-at-next-login --surname=Johannes --given-name=Haapa --uid-number=5000 --gid-number=5000 --home-directory=/home/johannes.local/haapajo --login-shell=/bin/bash
http://www.golinuxhub.com/2013/06/samba-41-as-active-directory.html
#!/bin/bash aptitude -y install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev libpam0g-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xsl libcups2-dev acl aptitude -y install git build-essential python-dev libacl1-dev libldap2-dev libctdb-dev libkrb5-dev libfam-dev dmapi-dev libpam-dev libavahi-common-dev libavahi-client-dev libcups2-dev dnsutils wget https://www.samba.org/samba/ftp/stable/samba-4.1.16.tar.gz gunzip samba-4.1.16.tar.gz tar -xvf samba-4.1.16.tar mv samba-4.1.16 /usr/local/samba cd /usr/local/samba ./configure make make install echo 'export PATH=$PATH:/usr/local/samba/bin:/usr/local/samba/sbin' >> .bashrc tail -n1 .bashrc export PATH=$PATH:/usr/local/samba/bin:/usr/local/samba/sbin source .bashrc samba -V
Mainos / Advertisement: