Debian 11 Bullseye
Sponsored Link

Samba : Fully Accessed Shared Folder2021/09/14

 
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] Install and Configure Samba.
root@smb:~#
apt -y install samba
root@smb:~#
mkdir /home/share

root@smb:~#
chmod 777 /home/share

root@smb:~#
vi /etc/samba/smb.conf
[global]
   # line 25 : add (set charset)
   unix charset = UTF-8

   # line 37 : uncomment and add network you allow to access
   interfaces = 127.0.0.0/8 10.0.0.0/24

   # line 98 : confirm (no authentication)
   map to guest = bad user

.....
.....

# add to the end
# any Share name you like
[Share]
   # specify shared directory
   path = /home/share
   # allow writing
   writable = yes
   # allow guest user (nobody)
   guest ok = yes
   # looks all as guest user
   guest only = yes
   # set permission [777] when file created
   force create mode = 777
   # set permission [777] when folder created
   force directory mode = 777 

root@smb:~#
systemctl restart smbd

Matched Content