Samba : Access to Share from Clients (Debian)2023/07/07 |
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 Thu Jul 6 20:17:26 2023 .. D 0 Thu Jul 6 19:34:46 2023 New folder D 0 Thu Jul 6 20:17:26 2023 New Text Document.txt A 12813 Thu Jul 6 20:25:31 2023 29303696 blocks of size 1024. 26265044 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 12813 as New Text Document.txt (128130000.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=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 2.2M 390M 1% /run /dev/mapper/debian--vg-root ext4 28G 1.5G 26G 6% / tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/vda1 ext2 455M 58M 373M 14% /boot tmpfs tmpfs 392M 0 392M 0% /run/user/0 //smb.srv.world/Share01 cifs 28G 2.9G 26G 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 |