Page 1 of 2

Permission Problems // BTSync

PostPosted: Thu Jul 05, 2018 8:56 pm
by iamola
I use Resilio / BT Sync a lot. Because of that, i get permission problems, a lot!
This is not something new, but its gotten bad because i have most of my files on Sync.

I have noticed when i try to FTP into the server to copy or move files to a folder that is in Sync, i cannot. I get a permission error. Any help with this or why this is occurring ?

Thanks

Re: Permission Problems // BTSync

PostPosted: Thu Jul 05, 2018 9:45 pm
by iamola
Tried editing the groups but i cannot find usermod

Re: Permission Problems // BTSync

PostPosted: Fri Jul 06, 2018 7:25 am
by Jocko
Hi iamola,

Resilio does not support fully linux account privilege.

Currently its behaviour :
- on a new sync file, Resilio set permissions and owner according to the source file
- it does not update permissions and owner on the sync file if you change them on the source file

So to fix your issue, you need to run regularly this chmod command
Code: Select all
chmod -R a=rwX /path/to/your/syncfolder

Re: Permission Problems // BTSync

PostPosted: Mon Jul 09, 2018 11:23 pm
by iamola
Is there a way to add a user to a group? This will fix the issue if i can add root to my account group.

Re: Permission Problems // BTSync

PostPosted: Tue Jul 10, 2018 8:01 am
by Jocko
Hi iomala
iamola wrote:This will fix the issue if i can add root to my account group.
No this won't fix your issue as root has already all privilege. So even if you add root, there will be no change.
iamola wrote:s there a way to add a user to a group?
Currently no and as each rebooting, the firmware resets group settings.
iamola wrote:I have noticed when i try to FTP into the server to copy or move files to a folder that is in Sync, i cannot.
Please can you check what are the permissions on the source file and also what are permissions on folder destination in such case.

Note: with proftpd you can not login with the root account

Re: Permission Problems // BTSync

PostPosted: Tue Jul 10, 2018 7:28 pm
by iamola
So the folder has a permission of root root. Meaning root is the user and root is the group.
But since i am using FTP as myusername, the file has permission of myusername myusername.
So i had to change the group of the folder to myusername and then i can transfer files into the folder using FTP.

Which is mainly the problem.

Re: Permission Problems // BTSync

PostPosted: Wed Jul 11, 2018 7:22 am
by Jocko
Up to now, it is the expected behaviour.

Ok you posted information about file owner but it is not enough. Permissions (rwx) are set according to the owner, group and other. So please to post this information.

Re: Permission Problems // BTSync

PostPosted: Wed Mar 13, 2019 8:08 pm
by iamola
The problem would be fixed if this happened.

Every user created through the app is also added to the group "root"
Which would fix most of Resilio's problems. Resilio uses root as the user when it creates something. So the account is root under group root.
If i created an account and used it to FTP i cannot do nothing in the folder. If my account had a group of "root" also, i think that would fix the issue.

Re: Permission Problems // BTSync

PostPosted: Thu Mar 14, 2019 9:15 am
by Jocko
Hi iamola,

iamola wrote:Every user created through the app is also added to the group "root"
I do not think use this way as this means this user would get the same rights as root user !

Currently resilio does not manage permissions and when it creates a folder for example, permissions are 755 (write permissions only for owner) and owner is root. Resilio is a locked app (no open source) and then not so easy to change its behaviour.

What you can try is to change umask value before running resilio, so do
Code: Select all
killall btsync
umask 0 && /usr/local/sbin/btsync --config /rw_fs/etc/btsync.conf
and see if a new file or folder created by resilio have full permissions

It seems to work as expected on my side

Please to note resilio must not be used as a backup tool because permissions and owner are never preserved!

Re: Permission Problems // BTSync

PostPosted: Thu Apr 02, 2020 2:50 am
by iamola
I still think we need to fix this permission issue. Not only with btsync but folders created by Twonky also have the same issue.
I created a folder via OSX Finder and it names the owner and group as nobody nobody
Mean while another has my username as the owner and group

Just weird