To access shared resources from a CentOS client, follow these steps:
On the CentOS client with a command-line interface, install the required packages:
dnf -y install samba-client cifs-utils
smbclientUse the smbclient command to access the shared resource:
smbclient '\\smb.srv.world\Share01' -U cent
Enter the password when prompted, and you'll be able to list files and download them as shown:
ls
mget testfile.txt
exit
mountMount the shared resource using the mount command:
mount -t cifs -o vers=3,username=cent '\\smb.srv.world\Share01' /mnt
Enter the password when prompted. You can then verify the mounted share with df -hT:
df -hT
If the share does not require authentication, use none for both username and password:
mount -t cifs -o vers=3,username=none,password=none '\\smb.srv.world\Share' /mnt
Accessing a Samba shared folder from Windows is straightforward:
Map Network Drive from the top menu.
Folder section and click Finish.

