Using the software samba we can share Linux folders in windows.When you share your home directory, all contents in that directory will be made available remotely from any system that uses Samba.First i added a dummy user named “test”.you can change this username with the name you want.
This dummy user “test” will be having a hoem directory and the usual folders like Documents,Pictures,Music etc ..Users are added like this…
sudo adduser test
Now install samba
sudo apt-get install samba smbfs
After installing samba, run the command below to edit smb.conf file.
sudo gedit /etc/samba/smb.conf
uncomment the line ( # ) security = user
Next, scroll down and uncomment ( ; ) the lines shown below and save the file.
Now add user account to samba database
sudo smbpasswd -a test
Change the “test” by the USERNAME you need.
Now edit the smb.conf
sudo gedit /etc/samba/smb.conf
And add the following changes
[sharetest]
comment = testing the share
path = /home/test/Desktop/
browseable = yes
read only = no
guest ok = no
force user = test
Now restart samba using the command
sudo /etc/init.d/smbd restart
or
sudo service smbd restart
Now everything is ready on our ubuntu server.Now going on to our windows client machine.Select network places so that our server will be listed in there
Here i selected the server “GANESH-Desktop” select yours accordingly.From there i selected the folder sharetest the name i gave in smb.conf.
Then the prompt asks for username and pass give that and you will be driven
to the server shared folder here the Desktop…
Now i pasted a jpg image in that shared folder and lets see in ubuntu server…..it works fine one windows xp machine also…
It works!!!! Happy Hacking 🙂