Install Samba with yum
[root@bhagwat ~]# yum install samba
Create a directory with full access
[root@bhagwat ~]# mkdir -p /home/software
[root@bhagwat ~]# chmod -R 0777 /home/software
Edit smb.conf file (change the following line)
[root@bhagwat ~]# vi /etc/samba/smb.conf
## Line no 75 - Change the to windows default workgroup
workgroup = WORKGROUP
## Line no 81 - Uncomment and set the IP Range
hosts allow = 127. 192.168.4.
## Line 102 - set no authentication
security = share
## Add the following lines at the bottom
[Softwares]
path = /home/software
writable = yes
browseable = yes
guest ok = yes
create mode = 0777
directory mode = 0777
Save & exit the samba file & Start the samba service with below command
[root@bhagwat ~]# /etc/init.d/smb start
##########
Disable SELinux & iptables if you are not able to access the shared directory
No comments:
Post a Comment