Vince42 Posted November 2, 2013 Report Share Posted November 2, 2013 Hi, when I start btsync as user by specifying the UID of 'user', the service will not start and sync.log saysError while adding folder /home/user/sync/share1: Can't open the destination folder.The .btsync folder exists, the sync/share1 folder exists, they are all accessible by user.When I start the daemon manually as root, it works.When I stop the daemon, chown the files to user and restart the service, it works. What am I missing here that the service will not initially start with user privileges? CheersVince Quote Link to comment Share on other sites More sharing options...
tuxpoldo Posted November 3, 2013 Report Share Posted November 3, 2013 when I start btsync as user by specifying the UID of 'user', the service will not start and sync.log saysError while adding folder /home/user/sync/share1: Can't open the destination folder.The .btsync folder exists, the sync/share1 folder exists, they are all accessible by user.When I start the daemon manually as root, it works.When I stop the daemon, chown the files to user and restart the service, it works. What am I missing here that the service will not initially start with user privileges? There are two internal files and a directory of btsync that are stored in the root of any shared folder:.SyncID.SyncIgnore.SyncArchiveYou must make sure, that btsync will be able to access all of them. If you have launched btsync initially as root, these files/directories have been created as root. Before switching to user mode operation, you MUST MAKE SURE, THAT EVERYTHING IS ACCESSIBLE AND WRITABLE. Please see the initial posting. When I start the daemon manually as root, it works. Obviously it works. root can access everything. When I stop the daemon, chown the files to user and restart the service, it works. After that you should never start the daemon instance as root, because this will change the file permissions/ownership.Please try to really understand what you are doing, otherwise you will never get it running. Read carefully the initial posting: everything related to permissions is described there in detail. Quote Link to comment Share on other sites More sharing options...
Vince42 Posted November 6, 2013 Author Report Share Posted November 6, 2013 Hi, I guess I have been misunderstood again. I started from scratch, ie I removed all btsync related files, made all directories accessible for the user, started the service as user and got the error message. The only way I could get the service running was running it as root, stopping it, chowning everything to the user and restarting it with user privileges. I fully understand what I am doing - otherwise I would have been stuck with "btsync can't be run with user privileges" - the fact that the intermediate step with root works simply tells me that there is really some issue with permissions. Please provide the link to "the initial posting" - I will verify the permissions again. Thank you very much in advance! CheersVince Quote Link to comment Share on other sites More sharing options...
eltopo Posted November 7, 2013 Report Share Posted November 7, 2013 do you configure pam_mount so some directories only available/mounted after 'user' successfully logged in? Quote Link to comment Share on other sites More sharing options...
Vince42 Posted November 7, 2013 Author Report Share Posted November 7, 2013 no, the home directory is there and all folders are true folders. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.