From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

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

Create a simple public share

Create a simple public share

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Create a simple public share

- 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 mkdir /home/sambapublic and hit enter. We also need to set a couple of SELinux booleans before we move on. Type in sudo setsebool -P samba_export_all_ro 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 /home/sambapublic directory, so the nobody user can write to it. Type in, sudo chown nobody:nobody /home/sambapublic and hit enter. And let's set the permissions for the nobody user. Type in sudo chmod 775 /home/sambapublic and hit enter again. Now let's change the SELinux policy database to expect our /home/sambapublic directory, to have the public_content_rw_Ttype. We'll do this with the semanage command. Type in clear then type in,…

Contents