Samba : Fully Accessed Shared Folder2026/06/01 |
|
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:~#
root@smb:~# apt -y install samba 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 44 : uncomment and change to your interface name interfaces = 127.0.0.0/8 enp1s0 # line 51 : uncomment bind interfaces only = yes # line 105 : 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 = 777root@smb:~# systemctl restart smbd
|
| [2] | If UFW is enabled, allow services. |
|
root@smb:~# ufw allow netbios-ssn root@smb:~# ufw allow microsoft-ds Rule added Rule added (v6) |
| Sponsored Link |
|
|