zai
20-06-2016, 20:35
Прочитал вот эту (https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC) статью и ничего не понял, кто нибудь может мне объяснить как все же сделать backup?
Samba AD DC на Ubuntu Server 16.04, устанавливал так:
1. apt-get update
apt-get upgrade
service lxd restart
2. nano /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.100 192.168.1.1
3. nano /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.100 server.test.local server
4. nano /etc/hostname
server
5. apt-get install samba smbclient winbind krb5-user ntp
6. rm /etc/samba/smb.conf
7. samba-tool domain provision --use-rfc2307 --interactive
Realm [TEST.LOCAL]: TEST.LOCAL
Domain [TEST]: TEST
Server Role (dc, member, standalone) [dc]: dc
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: SAMBA_INTERNAL
DNS forwarder IP address (write 'none' to disable forwarding) [192.168.1.100]: 192.168.1.1
8. nano /etc/samba/smb.conf
[global]
workgroup = TEST
realm = TEST.LOCAL
netbios name = SERVER
server role = active directory domain controller
dns forwarder = 192.168.1.1
idmap_ldb:use rfc2307 = yes
server signing = auto
client ldap sasl wrapping = plain
interfaces = 127.0.0.1 192.168.1.100
bind interfaces only = yes
[shara1]
path = /home/share/shara1
read only = no
[shara2]
path = /home/share/shara2
read only = no
[netlogon]
path = /var/lib/samba/sysvol/test.local/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
9. mkdir -p /home/share/shara1
mkdir -p /home/share/shara2
10. chmod -R 777 /home/share/shara1
chmod -R 777 /home/share/shara2
11. ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf
12. samba-tool domain passwordsettings set --max-pwd-age=999
13. nano /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.100
Samba AD DC на Ubuntu Server 16.04, устанавливал так:
1. apt-get update
apt-get upgrade
service lxd restart
2. nano /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.100 192.168.1.1
3. nano /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.100 server.test.local server
4. nano /etc/hostname
server
5. apt-get install samba smbclient winbind krb5-user ntp
6. rm /etc/samba/smb.conf
7. samba-tool domain provision --use-rfc2307 --interactive
Realm [TEST.LOCAL]: TEST.LOCAL
Domain [TEST]: TEST
Server Role (dc, member, standalone) [dc]: dc
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: SAMBA_INTERNAL
DNS forwarder IP address (write 'none' to disable forwarding) [192.168.1.100]: 192.168.1.1
8. nano /etc/samba/smb.conf
[global]
workgroup = TEST
realm = TEST.LOCAL
netbios name = SERVER
server role = active directory domain controller
dns forwarder = 192.168.1.1
idmap_ldb:use rfc2307 = yes
server signing = auto
client ldap sasl wrapping = plain
interfaces = 127.0.0.1 192.168.1.100
bind interfaces only = yes
[shara1]
path = /home/share/shara1
read only = no
[shara2]
path = /home/share/shara2
read only = no
[netlogon]
path = /var/lib/samba/sysvol/test.local/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
9. mkdir -p /home/share/shara1
mkdir -p /home/share/shara2
10. chmod -R 777 /home/share/shara1
chmod -R 777 /home/share/shara2
11. ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf
12. samba-tool domain passwordsettings set --max-pwd-age=999
13. nano /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.100