Samba : Access to Share from Clients (Ubuntu)2026/06/01 |
|
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 Mon Jun 1 02:03:36 2026 .. D 0 Mon Jun 1 02:03:36 2026 New folder D 0 Mon Jun 1 02:03:32 2026 New Text Document.txt A 29 Mon Jun 1 02:03:45 2026 28719140 blocks of size 1024. 20176112 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 29 as New Text Document.txt (5.7 KiloBytes/sec) (average 5.7 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 680M 1.5M 679M 1% /run /dev/mapper/ubuntu--vg-ubuntu--lv ext4 28G 6.8G 20G 26% / tmpfs tmpfs 1.7G 0 1.7G 0% /dev/shm none tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service none tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service tmpfs tmpfs 1.7G 0 1.7G 0% /tmp /dev/vda2 ext4 2.0G 98M 1.7G 6% /boot none tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-networkd.service none tmpfs 1.0M 0 1.0M 0% /run/credentials/serial-getty@ttyS0.service none tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service tmpfs tmpfs 340M 8.0K 340M 1% /run/user/0 //smb.srv.world/Share01 cifs 28G 8.2G 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 |
|
|