Samba is the standard Windows interoperability suite of programs for Linux and Unix.
Samba is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments. It can function both as a domain controller or as a regular domain member.
Samba is a software package that gives network administrators flexibility and freedom in terms of setup, configuration, and choice of systems and equipment.
sudo apt install samba -yMost users are running packages shipped with their distribution or from 3rd parties, such as SerNet (Samba+/Enterprise). However, in some situations you may decide to compile Samba yourself, for reasons such as:
mkdir /home/user/share
[share]Attention! This configuration means that your folder is public and has access without authentication.
path = /home/user/share/
public = yes
writable = yes
valid users = your_userand change public value to no.
sudo smbpasswd -a your_userAnd enter new password.
sudo systemctl start smbd
sudo systemctl enable smbd
sudo ufw allow 139
sudo ufw allow 445