Page 122 - RHEL8 BOOK
P. 122

Provide samba username & password

          Senario2. Linux as Client for windows [192.168.10.3]
          In windows the shared folders are windir1 windir2 and the users are winu1 winu2
          Method1. By Mounting
          [root@client~]#mount //192.168.10.3/windir1 /mnt –o username=windir1
          Password:
          [root@client~]#mount
          [root@client~]#cd /mnt
          [root@client mnt]#ls

          Method1. By smbclient Method
          [root@client~]#smbclient //192.168.10.3/windir2 /mnt –U windir1
          Password:
          Smb:\>ls
          Smb:\>pwd
          Smb:\>get fa.txt
          Smb:\>mget fa.txt fb.txt music.mp3
          Smb:\>exit

          Windows client:-
                        Open run prompt (windows + r), in the run prompt mention this syntax, like
                 \\192.168.0.1\myshare
                 Then automatically open the dialogue, box along with user name and password boxes, in this
          boxes you mention the proper user name and password then automatically open the virtual drive with
          sharing information.























                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           122
   117   118   119   120   121   122   123   124   125   126   127