课程: Linux System Engineer: Network Filesystems Using NFS and Samba
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Create a private Samba file share - Red Hat Enterprise Linux教程
课程: Linux System Engineer: Network Filesystems Using NFS and Samba
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…