Ubuntu 24.04
Sponsored Link

Samba : Fully Accessed Shared Folder2024/05/27

 
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 39 : uncomment and change to your interface name
   interfaces = 127.0.0.0/8 enp1s0

   # line 46 : uncomment
   bind interfaces only = yes

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

.....
.....

# add to last line
# 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