First, you should prepare your folder.

sudo chmod -R 777 "your_share_path"

Then install Samba in your Linux.

sudo apt-get install samba

Edit the conf file.

sudo nano /etc/samba/smb.conf

Add your sharing information to the end of the conf file.

[sharename]
   comment = sharename
   path = "your share path"
   valid users = your_user_name0,your_user_name1
   read only = no
   create mask = 0777
   directory mask = 0777
   guest ok = no
   browseable = yes

Of course, you need to add user(s) to your samba.

sudo smbpasswd -a your_user_name0

In the end, restart your Samba server.

sudo samba restart

Be careful, if you are using Windows, you need to enter your network location like ftp://Ip/sharename. Do not forget your “sharename” at the end of the path!

Here is a great software to handle different kinds of network storage(for Windows,17.6MB). You can download it here.

Views: 305

2 thoughts on “Config a Samba server”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.