Install samba on Ubuntu

Posted: February 17, 2017 in Linux

https://www.server-world.info/en/note?os=Ubuntu_14.04&p=samba&f=4

Setting Network

# nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 172.90.1.140
netmask 255.255.255.0
network 172.90.1.0
broadcast 172.90.1.255
gateway 172.90.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 172.90.1.140
dns-search fikry.local

Setting Hosts

127.0.0.1 localhost
172.90.1.140 AD01
172.90.1.140 fikry.local AD01
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Setting Hosts
# nano /etc/hosts
127.0.0.1 localhost
172.90.1.140 AD01
172.90.1.140 fikry.local AD01

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
clip_image001

Setting Hostname

# nano /etc/hostname
clip_image001[4]
clip_image002

Install SAMBA

# apt-get -y install samba krb5-config
clip_image004
clip_image006
clip_image008
clip_image010
clip_image012
# reboot

Check SAMBA Forest and Domain Function Level

clip_image013

TESTING SAMBA AS AN ACTIVE DIRECTORY DC

# samba –V
clip_image014
# smbcliet –version , not show because the program not installed.
clip_image016
Install smbclient
# apt-get install smbclient
clip_image018
Try to check smbclient version
clip_image019
clip_image020
Check samba list shares, if have failed like below. Try to install package winbind
# smbclient –L localhost –U%
clip_image020[1]
https://ubuntuforums.org/showthread.php?t=2324439
# apt-get install winbind
clip_image022
# reboot
Try to check list shares from samba
clip_image023

Join Domain PC Client to SAMBA

Setting IP Address Client, DNS must set to IP Samba
clip_image001[6]
Start è Computer è Right Click è select Properties
clip_image003
Click Change Settings
clip_image005
Click Change
clip_image006
Select Domain and type your NETBIOS or FQDN your domain controller
NETBIOS : FIKRY
FQDN : FIKRY.LOCAL
clip_image007
Type Password administrator domain for join your pc client to SAMBA. If you forget password administrator, that password when you compile the SAMBA as Domain Controller
clip_image009
clip_image010
clip_image011
clip_image012
clip_image013[4]

CMIIW, Thanks Smile

Leave a Reply

Your email address will not be published. Required fields are marked *