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.

[[email protected] ~]# dnf install samba samba-client -y
[[email protected] ~]# mkdir /home/share
[[email protected] ~]# chmod 777 /home/share
[[email protected] ~]# 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

[[email protected] ~]# systemctl enable smb
[[email protected] ~]# systemctl start smb

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

[[email protected] ~]# firewall-cmd --permanent --add-service=samba
success
[[email protected] ~]# firewall-cmd --reload
success

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

[[email protected] ~]# setsebool -P samba_enable_home_dirs on
[[email protected] ~]# restorecon -R /home/share