Setup Samba Server On Linux Mint 19.3 Tricia / Ubuntu 20.04 LTS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Samba is a free and open-source re-implementation of the SMB/CIFS network file sharing protocol that allows end users to access files, printers, and other shared resources.
Samba Server( Fully Accessed Share Directory )
For example, Create a fully accessed share directory which anyone can access and write without authentication.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment -
Linux Mint 19.3 Tricia Hostname - wwww.example.com , ip Address - 192.168.1.30
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd
apt update ; apt install -y build-essential net-tools curl git software-properties-common samba
mkdir /home/share ; chmod 777 /home/share
net config workstation
Workstation Domain - WORKGROUP
nano /etc/samba/smb.conf
workgroup = WORKGROUP unix charset = UTF-8 interfaces = 127.0.0.0/8 ens33 192.168.0.0/24
bind interfaces only = yes ; map to guest = Bad User
[Share]
path = /home/share
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
systemctl restart smbd ; systemctl status smbd ; hostname -I
ls /home/share
\\192.168.1.10\share
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment