Sharing File/Folder with Samba on Linux

First you should install the samba module with using command line;

#apt-get install samba

Then, create a folder,has everyone (read-write) authorisation, on desktop

#cd Desktop

#mkdir -p “folder_name”

#chmod 777 “folder_name”

1

Then, open samba config folder and add these commands;

#vi /etc/samba/smb.conf

[test$]
   comment = Sharing folder
   path = /root/Desktop/test
   browseable = yes
   guest ok = yes
   read only = yes
   public = yes
   writable = yes

2

After making all changes on folder, we can start the samba service

#service samba start

Now , When the running “\\”IP_address_of_Linux”\test$ ” command any computer on the same network,It will be accessed the “test” folder on Linux machine.

3

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