Samba : Access to Share from Clients (AlmaLinux)2023/03/07 |
Access to Share from Client Hosts.
|
|
[1] | On AlmaLinux clients with CUI, access like follows. |
[root@node01 ~]#
dnf -y install samba-client cifs-utils # with [smbclient] command access # smbclient (share name) -U (user name) [root@node01 ~]# smbclient '\\smb.srv.world\Share01' -U alma Enter SAMBA\alma's password: Try "help" to get a list of possible commands. smb: \> ls . D 0 Fri Mar 18 10:04:41 2022 .. D 0 Fri Mar 18 09:56:00 2022 testfile.txt N 10 Fri Mar 18 10:04:38 2022 testdir D 0 Fri Mar 18 10:04:41 2022 27245572 blocks of size 1024. 25276012 blocks available # download a file smb: \> mget testfile.txt Get file testfile.txt? y getting file \testfile.txt of size 10 as testfile.txt (3.3 KiloBytes/sec) (average 3.3 KiloBytes/sec) smb: \> !ls anaconda-ks.cfg testfile.txt smb: \> exit # with [mount] command access # [vers=(SMB protocol version)] [root@node01 ~]# mount -t cifs -o vers=3,username=alma '\\smb.srv.world\Share01' /mnt
Password for alma@\smb.srv.world\Share01: ******** # user's password
[root@node01 ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 1.8G 0 1.8G 0% /dev tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs tmpfs 745M 8.6M 737M 2% /run /dev/mapper/cs-root xfs 26G 1.9G 25G 8% / /dev/vda1 xfs 1014M 371M 644M 37% /boot tmpfs tmpfs 373M 0 373M 0% /run/user/0 //smb.srv.world/Share01 cifs 26G 1.9G 25G 8% /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 Exploler and select [Map Network Drive] on the top menu. |
[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 successing authentication, it's possbile to access to shared folder. |
Sponsored Link |
|