Fully Accessed Share

Install Samba to Configure File Server.

Install Samba to Configure File Server. For example, Create a fully accessed shared Folder which anybody can read and write, and also authentication is not required.

[1] Configure Samba.

[root@futurelinux ~]# dnf install samba samba-client -y
[root@futurelinux ~]# mkdir /home/share
[root@futurelinux ~]# chmod 777 /home/share
[root@futurelinux ~]# vi /etc/samba/smb.conf

# line 7: change (Windows default)
workgroup = WORKGROUP

# add to the end
# any Share name you like
[Share]
        # shared directory
        path = /home/share
        # writable
        writable = yes
        # allow guest user
        guest ok = yes
        # guest only
        guest only = yes
        # fully accessed
        create mode = 0777
        # fully accessed
        directory mode = 0777

[root@futurelinux ~]# systemctl enable smb
[root@futurelinux ~]# systemctl start smb

[2] If Firewalld is running, allow Samba service.

[root@futurelinux ~]# firewall-cmd --permanent --add-service=samba
success
[root@futurelinux ~]# firewall-cmd --reload
success

[3] If SELinux is enabled, change SELinux Context.

[root@futurelinux ~]# setsebool -P samba_enable_home_dirs on
[root@futurelinux ~]# restorecon -R /home/share