Page 120 - RHEL8 BOOK
P. 120
Or RHEL6
[public]
283 comment = This is Samba Server
284 path = /var/IDESIGN
285 valid users = tom joy root
286 public = no
287 writable = yes
288 printable = no
289 browseable = yes
290 create mask = 766
291 directory mask = 777
292 force users = tom
8. Create the users on Samba server.
[root@sun pub]# useradd tom
[root@sun pub]# useradd joy
[root@sun pub]# passwd tom
[root@sun pub]# passwd joy
9. Provide a separate samba password for samba users.
[root@sun~]#smbpasswd –a tom
[root@sun~]#smbpasswd –a joy
10. Check the syntax of configuration file
[root@sun~]#testparm
11. Start the Services (RHEL6)
[root@sun~]#service smb restart
[root@sun~]#chkconfig smb on
12. Now start the smb and nmb services. (RHEL7)
[root@sun~]#systemctl restart smb.service
[root@sun~]#systemctl restart nmb.service
Or
[root@sun~]#systemctl start smb.service
[root@sun~]#systemctl start nmb.service
13. Enable smb and nmb service at booting of system
[root@sun~]#systemctl enable smb
[root@sun~]#systemctl enable nmb
[root@sun~]#systemctl enable nmb.service
[root@sun~]# systemctl enable smb.service
Or (RHEL6)
[root@sun~]#chkconfig smb on
14. Stop and Disable the firewall service
[root@sun ~]#systemctl stop firewalld.service
[root@sun ~]#systemctl disable firewalld
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
120