课程: Linux System Engineer: Network Filesystems Using NFS and Samba

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Mount a simple public share

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…

内容