Now a days many people like software developers uses 2 or more OS. So the people who have multiple PC's with different OS need to share the files or folder between them. So how?
ii. LAN connection
Step 1. Install samba by giving command in centos console -
yum install samba
Step 2. Configure samba by opening smb.conf
i. Create a workgroup in which you are going to share the files/folders.
by default it is like -
change it to -workgroup = MYGROUP
netbios name = your_host_name
workgroup = workgroup
because windows system has default group named as WORKGROUP.
ii. Now create a shared resource , where you will indicate the path of the folder you want to share.
Where [myshare] is the folder name what you want people to see in their PC.[myshare] path = /root/Desktop/share writeable = yes
"path" is the path of your shared folder.
Step 3. Make sure your firewall allows SAMBA.
Step 4. Now test the settings of SAMBA by --
Step 5. Disable SELinux by-# testparm Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[myshare]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions
To permanently set it modify the /etc/selinux/config file and set the value of -
SELINUX = permissive
Step 6. Restart SAMBA by -
/sbin/service smb restart
Now you are done!