Difference between revisions of "Syncthing-share"

From wikipost
Jump to navigationJump to search
Line 10: Line 10:
 
* mkdir /home/samba/syncthing
 
* mkdir /home/samba/syncthing
  
* edit /etc/samba/smb.conf
 
 
at the end of the file, add these lines:
 
 
<pre>
 
[share]
 
  comment = Samba Share
 
  path = /home/samba/share
 
  browseable = yes
 
  read only = no
 
  guest ok = yes
 
</pre>
 
 
You can now already browse to \\<ip-address>\share with windows, but although you can see the 'share' directory's contents, you don't have the permissions yet to put or delete any files there.
 
  
 
* set permissions:
 
* set permissions:
Line 55: Line 41:
 
<pre>
 
<pre>
 
smbpasswd -a joe
 
smbpasswd -a joe
(+ enter password)
+
(+ enter same password as in linux)
 
</pre>
 
</pre>
 +
 +
 +
 +
* edit /etc/samba/smb.conf
 +
 +
at the end of the file, add these lines:
 +
 +
<pre>
 +
[share]
 +
  comment = Samba Share
 +
  path = /home/samba/share
 +
  browseable = yes
 +
  read only = no
 +
  guest ok = no 
 +
</pre>
 +
 +
You can now browse to \\<ip-address>\ with windows explorer where you will see the 'share' folder. Double-click on it and you will be presented with a login window, asking for credentials. Enter your user name and the password and you are now able to use the share for reading, writing and deleting files.

Revision as of 18:38, 25 October 2019

This article shows how to set up a Syncthing share.


  • apt-get install samba syncthing
  • mkdir /home/samba
  • mkdir /home/samba/share
  • mkdir /home/samba/syncthing


  • set permissions:

Because samba runs on Linux it's easier to manage samba user accounts when these users also exist as local users on the Linux system.

Furthermore, to apply permissions to all samba users in one go it is easier to create a linux group as well.


groupadd samba-users

Add the user accounts you'll need for your samba server:

adduser --gecos joe
(+ enter new password)


Add the users to the samba-users group:

adduser joe samba-users


Create the samba users:

smbpasswd -a joe
(+ enter same password as in linux)


  • edit /etc/samba/smb.conf

at the end of the file, add these lines:

[share]
   comment = Samba Share
   path = /home/samba/share
   browseable = yes
   read only = no
   guest ok = no   

You can now browse to \\<ip-address>\ with windows explorer where you will see the 'share' folder. Double-click on it and you will be presented with a login window, asking for credentials. Enter your user name and the password and you are now able to use the share for reading, writing and deleting files.