Fedora 41
Sponsored Link

Samba : Access to Share from Clients (Fedora)2024/11/12

 

Access to Share from Client Hosts.

[1] On Fedora clients with CUI, access like follows.
[root@node01 ~]#
dnf -y install samba-client cifs-utils
# with [smbclient] command access
# smbclient (share name) -U (user name)

[root@node01 ~]#
smbclient '\\smb.srv.world\Share01' -U fedora

Password for [SAMBA\fedora]:
Try "help" to get a list of possible commands.
smb: \> ls 
  .                                   D        0  Tue Nov 12 09:39:01 2024
  ..                                  D        0  Tue Nov 12 09:39:01 2024
  New folder                          D        0  Tue Nov 12 09:38:57 2024
  New Text Document.txt               A      189  Tue Nov 12 09:39:48 2024

                29294592 blocks of size 1024. 26986916 blocks available

# download a file
smb: \> mget "New Text Document.txt" 
Get file New Text Document.txt? y
getting file \New Text Document.txt of size 189 as New Text Document.txt (184.6 KiloBytes/sec) (average 184.6 KiloBytes/sec)
smb: \> !ls
 anaconda-ks.cfg  'New Text Document.txt'
smb: \> exit


# with [mount] command access
# [vers=(SMB protocol version)]

[root@node01 ~]#
mount -t cifs -o vers=3.0,username=fedora '\\smb.srv.world\Share01' /mnt

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

[root@node01 ~]#
df -hT /mnt

Filesystem              Type  Size  Used Avail Use% Mounted on
//smb.srv.world/Share01 cifs   28G  2.3G   26G   8% /mnt

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

[root@node01 ~]#
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 11.
[2] Open File Explorer and right-click the [Network] on the left pane, then select [Show more options] - [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 authentication, Input Samba username and password you added.
[5] After successfully passed authentication, it's possible to access to shared folder.
Matched Content