Samba : Access to Share from Clients (Fedora)2019/11/20 |
Access to Share from Client Hosts.
|
|
[1] | On Fedora 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 fedora Enter SAMBA\fedora's password: Try "help" to get a list of possible commands. smb: \> ls . D 0 Fri Nov 1 19:55:09 2019 .. D 0 Fri Nov 1 19:45:00 2019 New Folder D 0 Fri Nov 1 19:55:05 2019 New text document.txt A 0 Fri Nov 1 19:55:09 2019 27245572 blocks of size 1024. 25679240 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 0 as New text document.txt (0.0 KiloBytes/sec) (average 0.0 KiloBytes/sec) smb: \> !ls anaconda-ks.cfg mariadb_backup.tar.gz mariadb_backup 'New text document.txt' smb: \> exit # with [mount] command access # [vers=(SMB protocol version)] [root@node01 ~]# mount -t cifs -o vers=3.0,username=fedora '\\smb.srv.world\Share01' /mnt Password for fedora@\smb.srv.world\Share: ******** # password [ 293.807990] CIFS VFS: error -95 on ioctl to get interface list # the error above does not affect to accesses (with [vers=2.x], it's not shown)[root@node01 ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 1.9G 0 1.9G 0% /dev tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs tmpfs 1.9G 8.5M 1.9G 1% /run tmpfs tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mapper/cl-root xfs 26G 1.5G 25G 6% / /dev/vda1 ext4 976M 126M 783M 14% /boot tmpfs tmpfs 379M 0 379M 0% /run/user/0 \\smb.srv.world\Share cifs 26G 1.6G 25G 6% /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 10.
|
|
[2] | Select [Computer] - [Network] - [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 successing authentication, it's possbile to access to shared folder. |
Sponsored Link |
|