This article will describe how to install samba and access to home directory and share directory from Windows 10. Samba is the linux implementation of the windows network file sharing protocol called Server Message Block (SMB). A version of the protocl called Common Internet File System (CIFS) protocl also exists and it is a dialect of SMB. Both SMB and CIFS are available on VMS, Linux and several versions of Unix. More information about SMB/CIFS can be found in Microsoft SMB Protocol and CIFS Protocol Overview

Install Samba on Centos/Fedora/RHEL

sudo yum -y install samba
sudo systemctl enable smb nmb

Firewall

If you have firewall running then we need to ensure port is open

sudo firewall-cmd --add-service=samba --permanent
sudo firewall-cmd --reload

SELINUX

If you have selinux enabled then we need to enable access to home directory

setsebool -P samba_enable_home_dirs on

Other selinux boolean values that may be of interests are:

  • smbd_anon_write Allow guest write
  • samba_export_all_ro Allow read without samba_share_t
  • samba_export_all_rw Allow read/write without samba_share_t

Create Samba Users

sudo pbedit -a jnvilo
new password:
retype password:
<</sudo>>

==Start/Restart Samba

<<code>>
sudo systemctl restart smb nmb