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

Unlock the full course today

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

Create a simple public share

Create 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

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…

Contents