Samba : Access to Share from Clients (Ubuntu)2023/04/28 |
Access to Share from Client Hosts.
|
|
[1] | On Ubuntu clients with CUI, access like follows. |
root@node01:~#
apt -y install smbclient cifs-utils # with [smbclient] command access
# smbclient (share name) -U (user name) root@node01:~# smbclient '\\smb.srv.world\Share01' -U ubuntu Enter WORKGROUP\ubuntu's password: Try "help" to get a list of possible commands. smb: \> ls . D 0 Fri Apr 28 10:05:02 2023 .. D 0 Fri Apr 28 10:01:42 2023 testdir D 0 Fri Apr 28 10:04:10 2023 testfile.txt N 73816 Fri Apr 28 10:04:47 2023 27756732 blocks of size 1024. 20266828 blocks available # download a file smb: \> mget "testfile.txt" Get file testfile.txt? y getting file \testfile.txt of size 73816 as testfile.txt (72078.9 KiloBytes/sec) (average 72085.9 KiloBytes/sec) smb: \> !ls snap testfile.txt smb: \> exit #with [mount] command access
# [vers=(SMB protocol version)] root@node01:~# mount -t cifs -o vers=3.0,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 390M 1.5M 389M 1% /run /dev/mapper/ubuntu--vg-ubuntu--lv ext4 27G 5.9G 20G 24% / tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/vda2 ext4 2.0G 155M 1.7G 9% /boot tmpfs tmpfs 390M 4.0K 390M 1% /run/user/0 //smb.srv.world/Share01 cifs 27G 7.2G 20G 27% /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 authetication, Input Samba username and password you added. |
[5] | After successfully authentication, it's possbile to access to shared folder. |
Sponsored Link |