Set the SUID bit of the mount.davfs binary
While running box-sync setup we should set SUID bit to mount.davfs allowing regular usage of box-sync without requiring root privileges:
sudo chmod u+s /sbin/mount.davfs
This change should fix #2
I ran into the same problem as the user in #2:
$ ./box-sync start
/sbin/mount.davfs: program is not setuid root
Failed to mount sync dir.
When I ran the chmod command you suggested above, I advanced to a second problem:
$ ./box-sync start
/sbin/mount.davfs: user ofer must be member of group davfs2
Failed to mount sync dir.
Probably because I failed to add me to the group during the setup phase because it didn't have root privileges then either:
$ ./box-sync setup
* Setting up davfs...
* Created sync directory at '/home/ofer/Box'
* Adding yourself to davfs2 group (requires sudo)
Actually, it looks like it did manage to add me to the group:
$ tail -1 /etc/group
davfs2:x:126:ofer
So, don't know why it's still claiming I'm not in it...
I hit the same issue. Try logging out and back in.
On Wed, Sep 24, 2014 at 10:52 AM, Ofer Nave [email protected] wrote:
Actually, it looks like it did manage to add me to the group:
$ tail -1 /etc/group davfs2:x:126:ofer
So, don't know why it's still claiming I'm not in it...
— Reply to this email directly or view it on GitHub https://github.com/noiselabs/box-linux-sync/issues/7#issuecomment-56681924 .
David Jacoby [email protected]
Same here...
OK, found out that I had to login again
su -l myuser
after adding myself to davfs2 group. Then everything worked fine...
So, this issue can probably be closed...