Question 8
Share directories via SMB
Configure the SMB service on the system1
Your SMB server must be a member of the work group STAFF
Share /common and share name must be common
Only clients of domain11.example.com can access the common share
Common must be able to browse
User andy must be able to read the content of the share, if necessary, verfication code is redhat
Correct answer: A
Explanation:
system1: yum -y install samba samba-client firewall-cmd --add-service=samba –permanent firewall-cmd --add-service=mountd –permanent systemctl restart firewalld vim /etc/samba/smb.conf workgroup = STAFF [common] path = /common hosts allow = 172.24.11. browseable = yes :wq mkdir /common chcon –R –t samba_share_t /common/ smbpasswd -a andy systemctl start smb systemctl enable samba system2:yum install –y cifs-utils samba-client
system1:
yum -y install samba samba-client
firewall-cmd --add-service=samba –permanent
firewall-cmd --add-service=mountd –permanent
systemctl restart firewalld
vim /etc/samba/smb.conf
workgroup = STAFF
[common]
path = /common
hosts allow = 172.24.11.
browseable = yes
:wq
mkdir /common
chcon –R –t samba_share_t /common/
smbpasswd -a andy
systemctl start smb
systemctl enable samba
system2:
yum install –y cifs-utils samba-client