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
From the course: Red Hat Enterprise Linux 8 Essential Training
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,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
smb services introduction39s
-
Install and configure Samba services2m 11s
-
Manage SELinux for SMB services2m 24s
-
Samba global configuration options1m 45s
-
Samba share configuration definitions1m 1s
-
Create a simple public share5m 5s
-
Provide network shares to specific clients5m 23s
-
Automount using a credentials file2m 24s
-
Provide network shares suitable for group collaboration5m 31s
-
Mount a share for group collaboration1m 58s
-
Challenge: SMB share for group collaboration55s
-
Solution: SMB share for group server6m 6s
-
Solution: SMB share for group client3m 52s
-
-
-
-