Samba : Access to Share from Clients (Debian)2025/09/15 |
|
Access to Share from Client Hosts. |
|
| [1] | On Debian 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 debian Password for [WORKGROUP\debian]: Try "help" to get a list of possible commands. smb: \> ls . D 0 Mon Sep 15 10:15:05 2025 .. D 0 Mon Sep 15 10:15:05 2025 test.tst N 20 Mon Sep 15 10:15:00 2025 testdir D 0 Mon Sep 15 10:15:05 2025 testfile.txt N 12990 Mon Sep 15 10:14:47 2025 28215076 blocks of size 1024. 25340164 blocks available # download a file smb: \> mget "testfile.txt" Get file New Text Document.txt? y getting file \testfile.txt of size 12990 as testfile.txt (12684.3 KiloBytes/sec) (average 12685.5 KiloBytes/sec) smb: \> !ls testfile.txt smb: \> exit # on [mount] command access # [vers=(SMB protocol version)] root@node01:~# mount -t cifs -o vers=3,username=debian '\\smb.srv.world\Share01' /mnt
Password for debian@\\smb.srv.world\Share01: ******** # user's SMB password
root@node01:~# df -hT Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 1.9G 0 1.9G 0% /dev tmpfs tmpfs 392M 988K 392M 1% /run /dev/mapper/debian--vg-root ext4 27G 1.3G 25G 5% / tmpfs tmpfs 2.0G 0 2.0G 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 2.0G 0 2.0G 0% /tmp /dev/vda1 ext4 943M 135M 743M 16% /boot tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@ttyS0.service tmpfs tmpfs 392M 4.0K 392M 1% /run/user/0 //smb.srv.world/Share01 cifs 27G 2.8G 25G 11% /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 File Explorer and right-click the [Network] on the left pane, then select [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 authentication, it's possible to access to shared folder. |
|
| Sponsored Link |