Page 121 - RHEL8 BOOK
P. 121

Client Side Configuration

          1.     To check the samba servers on the network.
          [root@moon~]#findsmb

          2.     To check the samba servers Sharing list
          [root@moon~]#smbclient –L //192.168.10.1 –N (N-No password)

          Share the Information
          We can access the samba sharing information in two methods, are

               NFS Method or Mount Method
               FTP Method

          3.     NFS Method – create a Local mount Point
          [root@moon~]#mkdir /client

          4.     Mount to the Server (RHEL8)
          [root@moon~]#mount //192.168.10.1/myshare /client –o username=tom
          (Password:samba passwd)
          [root@moon~]#cd /client
          [root@sunclient]#ls

          FTP Method

          1.     [root@moon~]#smbclient //192.168.10.1/myshare –U tom
                 (password:samba password)
          Smb:\>ls
          Smb:\>pwd
          Smb:\>get fa.txt
          Smb:\>mget fa.txt fb.txt music.mp3
          Smb:\>exit

          Scenario1. Windows as Client for Linux Samba Server
          Login to windows PC from Linux by using rdesktop command where windows IP is 192.168.10.3 and
          samba server’s IP 192.168.10.1

          [root@sun~]#rdesktop 192.168.10.3 &
                        Login to machine
                               Click on start button
                                      Run
                                              Open [ \\ip\sharename ]
                 Eg. [\\192.168.10.3\sharename ]


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