Share Folder of a user in Ubuntu server and access that folder from Windows

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 🙂
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s