Mainos / Advertisement:

Ero sivun ”Sambadc” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
Rivi 25: Rivi 25:
  
 
  samba-tool domain provision --domain=JOHANNES --adminpass='Qwerty123' --function-level=2008_R2 --use-xattrs=yes --use-rfc2307 --realm=JOHANNES.LOCAL
 
  samba-tool domain provision --domain=JOHANNES --adminpass='Qwerty123' --function-level=2008_R2 --use-xattrs=yes --use-rfc2307 --realm=JOHANNES.LOCAL
 +
 +
 +
 +
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

Versio 27. tammikuuta 2015 kello 11.28

{{#allow-groups:sysop}}

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


samba-tool domain provision --domain=JOHANNES --adminpass='Qwerty123' --function-level=2008_R2 --use-xattrs=yes --use-rfc2307 --realm=JOHANNES.LOCAL


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
Mainos / Advertisement: