You are not logged in.

#1 2016-07-21 03:14:02

inviolater
Member
Registered: 2016-07-21
Posts: 3

Permission issue with BTSync Daemon/Service

Hello,

  I would like to start off by saying that I don't really understand why my configuration is not working so I may not be explaining the problem accurately. My goal is to have Bittorrent Sync be able to write a new directory so I don't have to ssh into a headless server and create the directory that will then contain the files it will sync to the server.

What I have so far is:

Btsync
user: btsync groups: btsync, shares
*Can sync files just fine in a directory that is owned by it. (i.e btsync:shares)

Shares directory

drwxrwsr--+  3 inviolater shares 4096 Jul 20 22:01 .
drwxr-xr-x  18 root       root   4096 Jul 20 22:00 ..
drwxrwsr--+  2 inviolater shares 4096 Jul 20 23:46 btsync

# file: .
# owner: inviolater
# group: shares
# flags: -s-
user::rwx
group::rwx
other::r--
default:user::rwx
default:user:btsync:rwx
default:group::rwx
default:mask::rwx
default:other::r--

# file: btsync/
# owner: inviolater
# group: shares
# flags: -s-
user::rwx
group::rwx
other::r--
default:user::rwx
default:user:btsync:rwx
default:group::rwx
default:mask::rwx
default:other::r--

So new files and directories are made with a $(user):shares that inherit permissions from the parent directory. In my experimentation everything seems to work fine even as me log in as the btsync user via su btsync. The problem occurs when the BTSync, the daemon/service tries to create a folder via the webgui, it is unable to create a new directory. My question is, is there something wrong with my configuration or do permissions work differently for daemons/services that run in the background?

Thank you for your time,
invio

Last edited by inviolater (2016-07-21 03:55:44)

Offline

Board footer

Powered by FluxBB