SMB: Provide Network Shares to Specific Clients - Server Installation and Configuration Flashcards
1
Q
Provide Network Shares to Specific Clients - Server Installation and Configuration
A
yum installl samba samba-client
mkdir /sambashare
getsebool -a | grep samba
setsebool -P samba_export_all_ro=1 samba_export_all_rw=1 samba
firewall-cmd –permanent –add-service samba
firewall-cmd –reload
vim /etc/samba/smb.conf [global] workgroup = MYLABSERVER server string = 172.31.19.137 hosts allow = 127. 172.31.106.92 interfaces = lo eth0 172.31.19. passdb backend = smbpasswd security = user log file = /var/log/samba/%m.log max log size = 5000 [sambashare] comment = /sambashare browsable = yes path = /sambashare public = yes valid users = user1 write list = user1 writable = yes
testparm
pbdedit -Lv
systemctl start smb
systemctl enable smb
smbclient -L //localhost -U user1