Andrew776 Posted June 27, 2013 Report Share Posted June 27, 2013 Hi,Linux novice here.I have a home network, mainly Windows. I want to share my movies library with a family member around 100 miles away. He wants to do the same with me, so we will have an identical library at each location. As more movies are ripped to a library they will sync across both libraries. Bittorrent Sync on Raspberry Pi looks ideal, I've made a start but hit a barrier.I have 2 ADSL lines at home so I've tested this across the LAN and also over the internet. Everything seems to work correctly if each library is on a drive on its RPi (USB stick). But, at both ends we have our libraries on Windows machines (for example mine's WHS 2011). Within the Windows world these shares can be read and written to. Also, I use my library with an RPi OpenElec XBMC without any issues and the share can be read and written to.I'm running Raspbian on the RPi i want to use, I have btsync running on startup and I've mounted the Windows share (as root) at /mnt/Movies. I have edited fstab to automount the share on startup. If I 'cd' to Movies and then request 'ls' I can read the contents of the library, but not write to it. I've tried to change ownership to user 'pi' and to change permissions to '777' but receive 'permission denied' messages for both requests.Trying to use the btsync web gui tells me I do not have permission to write to the share, so that's consistent.I get the feeling I'm lost in the 'permissions' area. Can anyone help please?Many thanks, Andrew Quote Link to comment Share on other sites More sharing options...
bobwood Posted June 27, 2013 Report Share Posted June 27, 2013 To get around this problem I added a script file to /etc/cron.hourly that changes the permissions as I want them. I am using the deb server packages provided by tuxpoldo which are using the default configuration running as root.This is working fine for me as I do not usually need to access synched files right away, so haveing to wait up to an hour is not an issue. Quote Link to comment Share on other sites More sharing options...
ChrisH Posted June 27, 2013 Report Share Posted June 27, 2013 - what permissions are set on the share in Windows?- what permissions are set on the files in Windows?- with which user account do you connect to the share? Quote Link to comment Share on other sites More sharing options...
Andrew776 Posted June 27, 2013 Author Report Share Posted June 27, 2013 Chris H,- what permissions are set on the share in Windows? - r/w for Everyone- what permissions are set on the files in Windows? - r/w for Everyone- with which user account do you connect to the share? - pi (the default for a new install of Raspbian)(Windows share permissions are set to Everyone just for setup period, they will be locked down again once this issue is resolved) Quote Link to comment Share on other sites More sharing options...
ChrisH Posted June 27, 2013 Report Share Posted June 27, 2013 And is there a user "pi" on the Windows system? (I have no experience with Home Server, I can only speak for "normal" Windows versions) Quote Link to comment Share on other sites More sharing options...
Andrew776 Posted June 27, 2013 Author Report Share Posted June 27, 2013 Chris,Told you I was a novice. I misunderstood your 3rd question.I am connecting to the share using an account that's on the Windows system. I am running the RPi as user 'pi'WHS is based on Windows Server 2003 and has a gui and feature set that looks like Windows 7 (feature set a bit reduced, understandably). It's a full member of the Windows family.Cheers, Andrew Quote Link to comment Share on other sites More sharing options...
ChrisH Posted June 27, 2013 Report Share Posted June 27, 2013 No problem. But then I'm out of ideas - does not seem to be a Windows problem after all. Quote Link to comment Share on other sites More sharing options...
eseelke Posted June 27, 2013 Report Share Posted June 27, 2013 Hi Andrew,Why not just install BitTorrent Sync in WHS? You won't have the webbased gui, but you can use rdp to login and set it up.Eddie Quote Link to comment Share on other sites More sharing options...
Andrew776 Posted June 27, 2013 Author Report Share Posted June 27, 2013 Eddie,Yes, I'd thought of that but I'm running a number of other servers on that platform (PC backups, cloud sync, an SQL business application, ftps server) and it's only running on Intel Atom. It's the heart of the household IT network and I just thought this an ideal fit for the RPi.If I can't make it happen on the Pi then I'll try WHS and see how hot it gets.Many thanks. Quote Link to comment Share on other sites More sharing options...
Andrew776 Posted June 27, 2013 Author Report Share Posted June 27, 2013 bobwood,I'll look into your suggestion of tuxpoldo. If everything runs as root that's a good start point, despite the risk. I'll post again if I have success.Thanks, Andrew Quote Link to comment Share on other sites More sharing options...
Camaban Posted June 27, 2013 Report Share Posted June 27, 2013 I've tried to change ownership to user 'pi' and to change permissions to '777' but receive 'permission denied' messages for both requests.I'm fairly sleep deprived here, so my apologies if I misread something.But to ask a stupid question - Did you use sudo when changing the permissions? Quote Link to comment Share on other sites More sharing options...
Andrew776 Posted June 27, 2013 Author Report Share Posted June 27, 2013 Camaban,Yes, i did use sudo but got the message 'Permission denied'. I can change he permission (and owner) of the directory in /mnt but it reverts to root ownership and read-only as soon as I mount the Windows share. Quote Link to comment Share on other sites More sharing options...
Andrew776 Posted June 28, 2013 Author Report Share Posted June 28, 2013 Solved.Some digging around on the web revealed that it the issue was permissions, as I suspected.Thanks to: http://raspberrypihe...on-raspberry-piThe solution is to set permissions when mounting, not after mounting, using :sudo mount -t cifs -o user=<changeme>,password=<changeme>,rw,file_mode=0777,dir_mode=0777//<ip address>/<share>Many thanks to everyone who has helped steer me to get this resolved.Andrew 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.