Samba : Access to Share from Clients (Ubuntu)2025/04/22 |
Access to Share from Client Hosts. |
|
[1] | On Ubuntu clients with CUI, access like follows. |
root@node01:~#
apt -y install smbclient cifs-utils # on [smbclient] command access # smbclient (share name) -U (user name) root@node01:~# smbclient '\\smb.srv.world\Share01' -U ubuntu Password for [WORKGROUP\ubuntu]: Try "help" to get a list of possible commands. smb: \> ls . D 0 Tue Apr 22 07:11:48 2025 .. D 0 Tue Apr 22 07:11:48 2025 New Text Document.txt A 15 Tue Apr 22 07:11:56 2025 New folder D 0 Tue Apr 22 07:11:44 2025 28719140 blocks of size 1024. 20357748 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 15 as New Text Document.txt (150000.0 KiloBytes/sec) (average inf KiloBytes/sec) smb: \> !ls 'New Text Document.txt' smb: \> exit # on [mount] command access # [vers=(SMB protocol version)] root@node01:~# mount -t cifs -o vers=3,username=ubuntu '\\smb.srv.world\Share01' /mnt
Password for ubuntu@\smb.srv.world\Share01: ******** # user's SMB password
root@node01:~# df -hT Filesystem Type Size Used Avail Use% Mounted on tmpfs tmpfs 341M 1.5M 339M 1% /run /dev/mapper/ubuntu--vg-ubuntu--lv ext4 28G 6.6G 20G 26% / tmpfs tmpfs 1.7G 0 1.7G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service tmpfs tmpfs 1.7G 0 1.7G 0% /tmp tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service /dev/vda2 ext4 2.0G 107M 1.7G 6% /boot tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-networkd.service tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/serial-getty@ttyS0.service tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service tmpfs tmpfs 341M 12K 341M 1% /run/user/0 //smb.srv.world/Share01 cifs 28G 8.0G 20G 30% /mnt # if 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 the File Explorer and right-click the [Network] on the left pane, then select [Map Network Drive]. |
![]() |
[3] | Specify the shared folder Path onthe [Folder] section and Click the [Finish] button. |
![]() |
[4] | Authentication is required if you set shared folder with authentication, input Samba username and password you added. |
![]() |
[5] | After successfully authentication, it's possible to access to shared folder. |
![]() |
Sponsored Link |