w82

Solved: Cifs Mount Permission Issues - Can't Write

Recommended Posts

Update: midway through this post I tried running BT Sync as root, group btsync, and it works. I don't like it, but it works. There is some awful permission-hell happening but I hope this helps someone.

 

Hi,

 

I've spent four days trying to resolve this, and I really am stumped. I can't get BTSync to write to a CIFS mount which is in my home directory, and which is used by various other programs and scripts perfectly fine.

 

What's odd is that when creating a new folder in BT Sync's Web Gui, this is created in the CIFS share correctly, but no files can be synced and it displays the error "Don't have permissions to write to selected folder".

 

I've tried changing the mount parameters to include 0777 file_mode and dir_mode (as listed here). After chmodding 777 to the folder I've also tried, successfully, in SSH:

sudo -u btsync touch boo.c

But, still, the error above persists.

 

 

Share this post


Link to post
Share on other sites

I've spent four days trying to resolve this, and I really am stumped. I can't get BTSync to write to a CIFS mount which is in my home directory, and which is used by various other programs and scripts perfectly fine.

 

This sounds like a disaster in the making :(. What if BTSync is started at a point when the CIFS mount is not available? It could think that the directory is now empty and sync all peers accordingly.

 

(I think this is only safe when Bittorrent sync's internal administration is also on the same CIFS mount, because then the BTSync daemon will just not start when the data is not available.)

Share this post


Link to post
Share on other sites

This sounds like a disaster in the making :(. What if BTSync is started at a point when the CIFS mount is not available? It could think that the directory is now empty and sync all peers accordingly.

 

(I think this is only safe when Bittorrent sync's internal administration is also on the same CIFS mount, because then the BTSync daemon will just not start when the data is not available.)

 

It's mounted in /home/user/mount_dir/ - not /home/ :)

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.