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.

Provide network shares to specific clients

Provide network shares to specific clients

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Provide network shares to specific clients

- [Instructor] For this exercise we're going to create a private samba share. To keep this exercise brief we will not duplicate all of the steps that we did in earlier chapters. Make sure you completed the exercise in creating a public share before doing this one. Ensure the firewall's configured for samba and make sure the samba service is running. Make 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 /home/sambaprivate and hit Enter. Type in your password if prompted. Now let's change the ownership and permissions of this directory so user1 can write to it. Type in sudo space chown space user1:user1 space /home/sambaprivate and hit Enter. So now let's hit the permissions. Type in sudo space chmod space 775 space /home/sambaprivate and hit Enter. Now let's change the SELinux policy database to expect our samba private directory to have the public_content_rw_t type. We'll do this with the semanage…

Contents