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

今天就学习课程吧!

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

Create a simple public share

Create a simple public share

- [Instructor] For this exercise, we're going to create a simple public Samba share. Be sure you're logged into your rhhost1 VM and have a terminal open. We'll start by creating a directory. Type in sudo space mkdir space slash home slash sambapublic, and hit Enter. We also need to set a couple of SELinux Booleans before we move on. Type in sudo space setsebool space dash capital P space Samba underscore export underscore all underscore ro space on, and hit Enter. Then bring your line back and change ro to rw, and hit Enter again. Now, let's change the ownership and permissions of the slash home slash sambapublic directory so that nobody user can write to it. Type in sudo space chown space nobody colon nobody space slash home slash sambapublic, and hit Enter. And let's set the permissions for the nobody user. Type in sudo space chmod space 775 space slash home slash sambapublic, and hit Enter again. Now, let's change the SELinux policy database to expect our slash home slash…

内容