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

Unlock the full course today

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

Create a private Samba file share

Create a private Samba file 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 private Samba file share

- [Instructor] For this exercise we're gonna 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've completed the exercise in creating a public share before doing this one. Ensure the firewall is configured for Samba, and make 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 set 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