Ubuntu 21.04
Sponsored Link

Samba : Access to Share from Clients (Ubuntu)
Access to Share from Client Hosts.
[1] On Ubuntu clients with CUI, access like follows.
apt -y install smbclient cifs-utils
# with [smbclient] command access

# smbclient (share name) -U (user name)

smbclient '\\smb.srv.world\Share01' -U ubuntu

Enter WORKGROUP\ubuntu's password:
Try "help" to get a list of possible commands.
smb: \> ls 
  .                                   D        0  Wed May 19 23:14:14 2021
  ..                                  D        0  Wed May 19 23:06:42 2021
  TestDir                             D        0  Wed May 19 23:14:03 2021
  testfile.txt                        N       10  Wed May 19 23:13:48 2021

                20511312 blocks of size 1024. 12583548 blocks available

# download a file
smb: \> mget "testfile.txt" 
Get file testfile.txt? y
getting file \testfile.txt of size 10 as testfile.txt (3.3 KiloBytes/sec) (average 3.3 KiloBytes/s
smb: \> !ls
snap  testfile.txt
smb: \> exit

# with [mount] command access

# [vers=(SMB protocol version)]

mount -t cifs -o vers=3.0,username=ubuntu '\\smb.srv.world\Share01' /mnt

Password for ubuntu@\smb.srv.world\Share01:  ********     # user's SMB password

df -hT

Filesystem                        Type   Size  Used Avail Use% Mounted on
tmpfs                             tmpfs  393M  1.6M  392M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv ext4    20G  6.5G   13G  35% /
tmpfs                             tmpfs  2.0G     0  2.0G   0% /dev/shm
tmpfs                             tmpfs  5.0M     0  5.0M   0% /run/lock
tmpfs                             tmpfs  4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/vda2                         ext4   976M  128M  782M  14% /boot
tmpfs                             tmpfs  393M  4.0K  393M   1% /run/user/0
//smb.srv.world/Share01           cifs    20G  7.6G   13G  39% /mnt

# if share does not require authentication, specify [none] for username

mount -t cifs -o vers=3,username=none,password=none '\\smb.srv.world\Share' /mnt

Samba : Access to Share from Clients (Windows)
It's the way to access to the shared folder. This example is on Windows 10.
[2] Select [Computer] - [Network] - [Map Network Drive].
[3] Specify the shared folder Path on [Folder] section and Click the [Finish] button.
[4] Authentication is required if you set common shared folder with authetication, Input Samba username and password you added.
[5] After successfully authentication, it's possbile to access to shared folder.
Matched Content