Recommended Posts

I use two linux servers in two different networks (192.168.ABC.X and 192.168.DEF.X) who are connected to each other via VPN.

On both servers are the same folders /srv/sharedfolder. The data of this folders are synced with btsync. Both servers offers an access to the stored files for Windows clients without passwords etc. with Samba. The samba configuration is:


[sharedfolder]
path = /srv/sharedfolder
public = yes
writeable = yes
printable = no
guest ok = yes
create mask = 777
directory mask = 777

After syncing the data with btsync from one server to the other a windows client in the other network can open the synced file but not overwrite it. To do that I have to set the ownership of the files on the server in the other network from 770 to 777 manually after syncing.

Is there a way to configure btsync or samba to keep the rights of the files?

Share this post


Link to post
Share on other sites

I may be looking at this the wrong way, but If btsync is a process running under a user on the linux machine I would try to adjust that account's umask to match what you want btsync to create,

Share this post


Link to post
Share on other sites

im haveing a similar issue as im ruung the server version on my local server and it runs as root and all folders are not being set with with full perms plus they are not being made visable to my other systems till i have manually changed the user, group, and perms. once i do that they become visavle on my local network and i can access them with no issues.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.