We will see the easiest way to set up quickly a Samba server on Debian.
root@host:~# apt-get install samba
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface # This is an autoconfigured IPv6 interface allow-hotplug eth0 iface eth0 inet static address 10.0.0.200 netmask 255.255.255.0 gateway 10.0.0.254
root@host:~# reboot
root@host:~# mkdir /share
root@host:~# adduser --home /share --system samba
root@host:~# chown samba: /share
root@host:~# smbpasswd -a samba
[global] workgroup = WORKGROUP server string = serv01 [share] path = /share read only = no valid users = samba
root@host:~# testparm
root@host:~# systemctl restart smbd; systemctl restart nmbd
Contact :