From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Mount a simple public share

Mount a simple public share - Red Hat Enterprise Linux Tutorial

From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Start my 1-month free trial

Mount a simple public share

- [Instructor] For this exercise you want to be logged into your rhhost2 VM with the terminal open. First we'll use smbclient to see if we can log in remotely from rhhost2. Type in smbclient //rhhost1/sambapublic and hit enter. Hit enter for your password to log in as a guest. If you didn't get an error message then it worked perfectly. We can also test if we can write files by creating another directory. First type in ls and hit enter. We can see our previous directory. Now let's create a new one. Type in mkdir testdir2 and hit enter, and then type in ls to verify again. It appears that we can log in and create files just fine. Time to mount to share locally. Type in quit to exit. Let's make our mount point /home. Type in clear, and then type in sudo mkdir /home/sambapublic and hit enter. Now let's mount the share as a guest user. Type in sudo mount -t cifs -o guest,noperm //rhost1/sambapulic /home/sambapublic and hit enter. We've added the guest option so we're not prompted for a…

Contents